84% compact-taxonomy-checkboxes

Code Review | Compact Taxonomy Checkboxes

WordPress plugin Compact Taxonomy Checkboxes scored84%from 54 tests.

About plugin

  • Plugin page: compact-taxonomy-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2012
  • Latest release: Jun 7, 2013
  • Number of updates: 10
  • Update frequency: every 79.8 days
  • Top authors: husobj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,718 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Compact Taxonomy Checkboxes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.56 ▼1.13
Dashboard /wp-admin3.31 ▼0.0444.04 ▼14.26
Posts /wp-admin/edit.php3.36 ▲0.0044.19 ▼1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.19 ▼16.97
Media Library /wp-admin/upload.php3.23 ▲0.0035.42 ▲2.64

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Compact Taxonomy Checkboxes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.441.92 ▼0.0142.15 ▼2.76
Dashboard /wp-admin2,206 ▲155.91 ▲0.81105.86 ▲2.7740.25 ▼4.45
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0237.56 ▲0.2932.37 ▼2.19
Add New Post /wp-admin/post-new.php1,544 ▲1418.28 ▲0.13639.35 ▲21.6560.80 ▲4.52
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0294.94 ▼8.7845.41 ▲0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
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/compact-taxonomy-checkboxes/compact-taxonomy-checkboxes.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: ui, category, taxonomy, taxonomies, edit...

compact-taxonomy-checkboxes/compact-taxonomy-checkboxes.php Passed 13 tests

"Compact Taxonomy Checkboxes" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Collapse and reduce the height of hierarchical category and taxonomy panels in the WordPress admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192232

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin