84% taxonomy-pages

Code Review | Taxonomy Pages

WordPress plugin Taxonomy Pages scored84%from 54 tests.

About plugin

  • Plugin page: taxonomy-pages
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2019
  • Latest release: Aug 12, 2019
  • Number of updates: 33
  • Update frequency: every 0.3 days
  • Top authors: MDVG (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Taxonomy Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.77 ▼4.76
Dashboard /wp-admin3.32 ▲0.0155.09 ▼2.61
Posts /wp-admin/edit.php3.37 ▲0.0150.58 ▼5.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.58 ▼25.75
Media Library /wp-admin/upload.php3.24 ▲0.0143.73 ▲6.44
Related Pages /wp-admin/edit-tags.php?taxonomy=things&post_type=page3.2338.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Taxonomy Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.72 ▲0.441.78 ▼0.0455.75 ▲13.04
Dashboard /wp-admin2,199 ▲225.53 ▼0.0086.30 ▼15.7840.38 ▼4.70
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0739.51 ▲1.8636.42 ▼1.62
Add New Post /wp-admin/post-new.php1,529 ▼523.63 ▲5.44673.10 ▼13.8252.04 ▼14.94
Media Library /wp-admin/upload.php1,404 ▲14.22 ▼0.0198.64 ▼9.8444.54 ▼4.72
Related Pages /wp-admin/edit-tags.php?taxonomy=things&post_type=page1,2752.2427.3131.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taxonomy-pages/taxonomy_pages.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can look at the official readme.txt

taxonomy-pages/taxonomy_pages.php 92% from 13 tests

The entry point to "Taxonomy Pages" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("taxonomy-pages.php" instead of "taxonomy_pages.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected14 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111814

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin