89% cpt-admin-taxonomy-filtering

Code Review | CPT-Admin-Taxonomy-Filtering

WordPress plugin CPT-Admin-Taxonomy-Filtering scored89%from 54 tests.

About plugin

  • Plugin page: cpt-admin-taxonom...
  • Plugin version: 1.0.0
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 5, 2021
  • Latest release: May 6, 2021
  • Number of updates: 26
  • Update frequency: every 0.0 days
  • Top authors: amarinediary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by CPT-Admin-Taxonomy-Filtering
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.52 ▼5.65
Dashboard /wp-admin3.31 ▲0.0050.29 ▲0.45
Posts /wp-admin/edit.php3.36 ▲0.0053.21 ▲3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.17 ▼13.01
Media Library /wp-admin/upload.php3.23 ▲0.0035.81 ▼2.38

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for CPT-Admin-Taxonomy-Filtering
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.74 ▲0.471.75 ▼0.2242.09 ▼10.30
Dashboard /wp-admin2,192 ▲185.52 ▼0.1387.30 ▼4.3938.65 ▼3.79
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0538.89 ▼2.4235.82 ▼1.76
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▲0.02661.55 ▲3.2357.45 ▲0.78
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0498.60 ▼13.0239.76 ▼10.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 issues were found

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
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

cpt-admin-taxonomy-filtering/cpt-admin-taxonomy-filtering.php 92% from 13 tests

The entry point to "CPT-Admin-Taxonomy-Filtering" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1183338

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin