94% 011-ps-custom-taxonomy

Code Review | 011 Ps Custom Taxonomy

WordPress plugin 011 Ps Custom Taxonomy scored 94% 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: 5.9.2
  • 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,514 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼291.01ms] Passed 4 tests

An overview of server-side resources used by 011 Ps Custom Taxonomy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1556.02 ▲6.31
Dashboard /wp-admin3.49 ▲0.0832.35 ▼2.30
Posts /wp-admin/edit.php3.72 ▲0.0841.09 ▲3.12
Add New Post /wp-admin/post-new.php6.96 ▼0.0192.68 ▼1,164.71
Media Library /wp-admin/upload.php3.38 ▲0.0824.48 ▼0.14

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 011 Ps Custom Taxonomy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲6215.78 ▼0.206.56 ▲0.702.10 ▼0.55
Dashboard /wp-admin2,916 ▲556.09 ▼0.06119.48 ▼19.52190.44 ▲27.32
Posts /wp-admin/edit.php2,710 ▲223.24 ▲0.0164.44 ▼1.42178.60 ▲36.54
Add New Post /wp-admin/post-new.php1,730 ▲7521.08 ▲0.27446.28 ▲5.02160.87 ▲0.17
Media Library /wp-admin/upload.php1,716 ▲185.55 ▲0.06137.72 ▼8.43240.69 ▲52.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/011-ps-custom-taxonomy/config/_config.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/011-ps-custom-taxonomy/ps-custom-taxonomy.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (add category.) image not found
You can take inspiration from this readme.txt

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

The principal PHP file in "011 Ps Custom Taxonomy" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! 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

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
No PNG images were found in this plugin