90% select-all-terms

Code Review | Select All Terms

WordPress plugin Select All Terms scored90%from 54 tests.

About plugin

  • Plugin page: select-all-terms
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.8
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Jun 19, 2017
  • Number of updates: 17
  • Update frequency: every 77.2 days
  • Top authors: luistinygod (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Select All Terms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.26 ▼4.38
Dashboard /wp-admin3.32 ▼0.0245.15 ▼16.07
Posts /wp-admin/edit.php3.37 ▲0.0146.83 ▼1.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.30 ▼7.37
Media Library /wp-admin/upload.php3.24 ▲0.0136.19 ▲1.45

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Select All Terms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.33 ▼0.921.90 ▲0.1139.73 ▼3.84
Dashboard /wp-admin2,197 ▲115.80 ▲0.8596.64 ▼10.3240.76 ▲1.22
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.0040.06 ▲3.7635.43 ▼0.45
Add New Post /wp-admin/post-new.php1,542 ▲918.76 ▼4.55618.25 ▼56.4371.31 ▲26.25
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0494.08 ▼9.4445.09 ▼0.24

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

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

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: taxonomies, metabox, select all, terms

select-all-terms/select-all-terms.php Passed 13 tests

This is the main PHP file of "Select All Terms" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Add select all/deselect all buttons to taxonomies' metaboxes

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
Good job! No executable or dangerous file extensions detected109 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File2102654
PHP2346636
JavaScript113619

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin