100% ps-taxonomy-expander

Code Review | PS Taxonomy Expander

WordPress plugin PS Taxonomy Expander scored 100% from 54 tests.

About plugin

  • Plugin page: ps-taxonomy-expander
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.8.1
  • First release: May 2, 2011
  • Latest release: Jul 25, 2016
  • Number of updates: 43
  • Update frequency: every 44.4 days
  • Top authors: jim912 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10,000+ active / 58,174 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by PS Taxonomy Expander
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.10 ▲20.41
Dashboard /wp-admin3.11 ▲0.0544.90 ▼0.21
Posts /wp-admin/edit.php3.20 ▲0.0845.65 ▼8.15
Add New Post /wp-admin/post-new.php5.47 ▲0.0487.33 ▼565.07
Media Library /wp-admin/upload.php3.05 ▲0.0531.36 ▲1.15

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for PS Taxonomy Expander
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲5215.99 ▲0.349.26 ▼0.6746.70 ▲0.24
Dashboard /wp-admin3,009 ▲786.01 ▼0.03134.30 ▼12.31112.05 ▼1.10
Posts /wp-admin/edit.php2,726 ▼132.48 ▼0.2566.37 ▲2.0489.80 ▼11.15
Add New Post /wp-admin/post-new.php1,888 ▲39019.26 ▲0.44382.57 ▲3.36106.99 ▼7.46
Media Library /wp-admin/upload.php1,824 ▲175.02 ▲0.01142.81 ▼6.54117.79 ▼6.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: taxonomy, custom taxonomy, category, tag

ps-taxonomy-expander/ps-taxonomy-expander.php Passed 13 tests

The main PHP file in "PS Taxonomy Expander" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
PS Taxonomy Expander makes easy to use categories, tags and custom taxonomies on editing posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected962 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP114028894
PO File1212464
JavaScript4004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity110.00
▷ Minimum class complexity4.00
▷ Maximum class complexity216.00
Average method complexity6.74
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods38100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon32.png1.89KB1.34KB▼ 29.07%
images/ps_logo.png3.10KB1.48KB▼ 52.27%