84% post-type-taxonomy-debug

Code Review | Post Type & Taxonomy Debug

WordPress plugin Post Type & Taxonomy Debug scored84%from 54 tests.

About plugin

  • Plugin page: post-type-taxonom...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2019
  • Latest release: Sep 27, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: nerdismftw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 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.01MB] [CPU: ▼2.85ms] Passed 4 tests

Analyzing server-side resources used by Post Type & Taxonomy Debug
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.04 ▲1.92
Dashboard /wp-admin3.31 ▲0.0152.47 ▼1.65
Posts /wp-admin/edit.php3.36 ▲0.0153.14 ▼1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.75 ▼10.13
Media Library /wp-admin/upload.php3.24 ▲0.0141.38 ▲3.31
Post Type & Taxonomy Debug /wp-admin/tools.php?page=pttax_debug3.2432.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Post Type & Taxonomy Debug
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.13 ▲0.192.62 ▲0.7963.41 ▲15.05
Dashboard /wp-admin2,211 ▲235.83 ▼0.03129.39 ▲13.1049.98 ▲0.86
Posts /wp-admin/edit.php2,100 ▲112.14 ▲0.0942.26 ▼2.5538.87 ▼2.78
Add New Post /wp-admin/post-new.php1,521 ▲723.23 ▼0.16721.68 ▼7.4569.24 ▲8.44
Media Library /wp-admin/upload.php1,393 ▲84.19 ▲0.00138.34 ▲6.5753.47 ▼6.87
Post Type & Taxonomy Debug /wp-admin/tools.php?page=pttax_debug11,0442.0629.3964.81

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/post-type-taxonomy-debug/customposttypedebug.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: posttype, debugging, taxonomy

post-type-taxonomy-debug/customposttypedebug.php 92% from 13 tests

"Post Type & Taxonomy Debug" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-type-taxonomy-debug.php" instead of "customposttypedebug.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin345 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP138100297
CSS111840
JavaScript1108

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods15
▷ Static methods00.00%
▷ Public methods746.67%
▷ Protected methods853.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin