84% 011-ps-custom-taxonomy

Code Review | 011 Ps Custom Taxonomy

WordPress plugin 011 Ps Custom Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: 011-ps-custom-tax...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-3.3.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2012
  • Latest release: Jan 18, 2013
  • Number of updates: 17
  • Update frequency: every 13.6 days
  • Top authors: ouhinit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.80ms] Passed 4 tests

Server-side resources used by 011 Ps Custom Taxonomy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.35 ▼5.78
Dashboard /wp-admin3.31 ▲0.0047.08 ▼6.16
Posts /wp-admin/edit.php3.36 ▲0.0049.49 ▼3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.58 ▼19.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.04 ▼3.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by 011 Ps Custom Taxonomy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.16 ▼0.221.57 ▼1.0332.43 ▼14.12
Dashboard /wp-admin2,204 ▲245.51 ▼0.1987.63 ▲0.9455.32 ▲14.48
Posts /wp-admin/edit.php2,112 ▲122.01 ▼0.0235.04 ▼1.5549.98 ▲16.05
Add New Post /wp-admin/post-new.php1,538 ▲123.25 ▲5.07672.59 ▼22.0658.42 ▼12.37
Media Library /wp-admin/upload.php1,412 ▲124.20 ▼0.01108.13 ▲3.8661.23 ▲17.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× 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/011-ps-custom-taxonomy/ps-custom-taxonomy.php:61
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/011-ps-custom-taxonomy/config/_config.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (add category.) image required
You can take inspiration from this readme.txt

011-ps-custom-taxonomy/ps-custom-taxonomy.php 92% from 13 tests

This is the main PHP file of "011 Ps Custom Taxonomy" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("011-ps-custom-taxonomy.php" instead of "ps-custom-taxonomy.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
Success! There were no dangerous files found in this plugin416 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP298226411
CSS1105

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin