84% category-tag-pages

Code Review | Category Tag Pages

WordPress plugin Category Tag Pages scored84%from 54 tests.

About plugin

  • Plugin page: category-tag-pages
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 6.3.1
  • First release: Jun 16, 2014
  • Latest release: Mar 26, 2020
  • Number of updates: 13
  • Update frequency: every 162.3 days
  • Top authors: marziocarro (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

10,000+ active /59,853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Category Tag Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.31 ▼2.19
Dashboard /wp-admin3.32 ▲0.0148.67 ▲0.94
Posts /wp-admin/edit.php3.37 ▲0.0144.54 ▼5.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.49 ▼17.36
Media Library /wp-admin/upload.php3.24 ▲0.0134.93 ▼2.63
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2336.96
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2331.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
category_children

Browser metrics Passed 4 tests

This is an overview of browser requirements for Category Tag Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.38 ▼0.922.03 ▲0.2645.04 ▲1.09
Dashboard /wp-admin2,214 ▲264.85 ▼1.08111.81 ▲10.4543.41 ▼0.13
Posts /wp-admin/edit.php2,097 ▲81.98 ▲0.0235.45 ▼5.2033.21 ▼4.55
Add New Post /wp-admin/post-new.php1,520 ▼017.53 ▼5.44664.15 ▲19.1660.73 ▲8.08
Media Library /wp-admin/upload.php1,393 ▲54.22 ▲0.0297.30 ▼14.7841.27 ▼6.05
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4542.1429.4133.34
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3122.1326.6027.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-tag-pages/category-tag-pages.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (A screenshot of the WordPress backend Pages section with the Categories metabox and the Tags metabox marked red.) image not found
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

This is the main PHP file of "Category Tag Pages" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Adds categories and tags functionality for your pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP194116

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png148.16KB50.51KB▼ 65.91%