89% debug-bar-post-types

Code Review | Debug Bar Post Types

WordPress plugin Debug Bar Post Types scored89%from 54 tests.

About plugin

  • Plugin page: debug-bar-post-types
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Jan 22, 2018
  • Number of updates: 17
  • Update frequency: every 89.1 days
  • Top authors: jrf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /29,769 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼2.48ms] Passed 4 tests

Server-side resources used by Debug Bar Post Types
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.28 ▲0.45
Dashboard /wp-admin3.31 ▲0.0045.38 ▼4.84
Posts /wp-admin/edit.php3.36 ▲0.0048.87 ▲5.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.02 ▼7.43
Media Library /wp-admin/upload.php3.23 ▲0.0035.20 ▲1.90

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

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

Browser metrics Passed 4 tests

Debug Bar Post Types: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼0.751.71 ▼0.1244.39 ▲0.83
Dashboard /wp-admin2,206 ▲175.79 ▲0.8398.78 ▼22.9938.70 ▼6.62
Posts /wp-admin/edit.php2,068 ▼182.00 ▼0.1838.31 ▲2.3034.89 ▲1.76
Add New Post /wp-admin/post-new.php1,514 ▼017.69 ▲0.17671.80 ▼6.5651.47 ▼16.98
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0193.83 ▼6.4441.58 ▼4.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

debug-bar-post-types/debug-bar-post-types.php 92% from 13 tests

This is the main PHP file of "Debug Bar Post Types" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,503 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP53507051,331
PO File24881111
CSS24256
Markdown1205

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity32.25
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods2567.57%
▷ Public methods1745.95%
▷ Protected methods25.41%
▷ Private methods1848.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/badge-circle-check-16.png0.74KB0.83KB0.00%
images/badge-circle-cross-16.png0.74KB0.83KB0.00%