84% pages-with-category-and-tag

Code Review | Pages with category and tag

WordPress plugin Pages with category and tag scored 84% from 54 tests.

About plugin

  • Plugin page: pages-with-catego...
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2018
  • Latest release: Jul 22, 2023
  • Number of updates: 48
  • Update frequency: every 38.8 days
  • Top authors: back2nature (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

20,000+ active / 52,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.65ms] Passed 4 tests

Server-side resources used by Pages with category and tag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.82 ▼6.33
Dashboard /wp-admin3.31 ▲0.0144.10 ▼6.67
Posts /wp-admin/edit.php3.36 ▲0.0144.38 ▼1.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.24 ▼8.01
Media Library /wp-admin/upload.php3.24 ▲0.0131.19 ▼1.58
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2333.11
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2335.24

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
category_children
db_upgraded

Browser metrics Passed 4 tests

Pages with category and tag: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.48 ▲0.101.84 ▼0.0240.05 ▼3.94
Dashboard /wp-admin2,214 ▲265.90 ▲1.02106.31 ▼9.9437.40 ▼9.56
Posts /wp-admin/edit.php2,097 ▲81.99 ▼0.0343.14 ▲7.7134.68 ▼3.22
Add New Post /wp-admin/post-new.php1,544 ▲623.25 ▲0.06629.97 ▼43.5750.95 ▼2.50
Media Library /wp-admin/upload.php1,399 ▲114.30 ▲0.1196.09 ▼3.1645.07 ▲3.55
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3122.1428.9034.44
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4512.2727.7731.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pages-with-category-and-tag/pages-with-category-and-tag.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

pages-with-category-and-tag/pages-with-category-and-tag.php Passed 13 tests

"Pages with category and tag" version 0.9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Add Categories and Tags to Pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File181131
PHP182719

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.88
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin