94% debug-bar-slow-actions

Code Review | Debug Bar Slow Actions

WordPress plugin Debug Bar Slow Actions scored 94% from 54 tests.

About plugin

  • Plugin page: debug-bar-slow-ac...
  • Plugin version: 0.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 5.8.1
  • First release: Feb 7, 2014
  • Latest release: Jan 18, 2018
  • Number of updates: 19
  • Update frequency: every 75.8 days
  • Top authors: kovshenin (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

600+ active / 41,820 total downloads

Benchmarks

Plugin footprint Passed 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: ▲4.82MB] [CPU: ▼605.37ms] Passed 4 tests

An overview of server-side resources used by Debug Bar Slow Actions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.27 ▲4.5563.68 ▲38.62
Dashboard /wp-admin8.25 ▲5.1997.14 ▲42.23
Posts /wp-admin/edit.php8.21 ▲5.1184.92 ▲35.01
Add New Post /wp-admin/post-new.php13.29 ▲7.86150.69 ▼2,516.14
Media Library /wp-admin/upload.php7.43 ▲4.4359.35 ▲21.04

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Debug Bar Slow Actions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.84 ▲0.289.00 ▲1.3354.35 ▼3.94
Dashboard /wp-admin2,964 ▲275.85 ▼0.23171.61 ▲8.86155.93 ▲22.60
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0080.41 ▲5.21108.47 ▲5.59
Add New Post /wp-admin/post-new.php1,672 ▼1119.10 ▲2.97396.10 ▼44.08113.52 ▼16.11
Media Library /wp-admin/upload.php1,751 ▼595.01 ▼0.03161.92 ▼6.00131.82 ▲2.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar-slow-actions/debug-bar-slow-actions.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
3 plugin tags: actions, debug, profiling

debug-bar-slow-actions/debug-bar-slow-actions.php Passed 13 tests

The main file in "Debug Bar Slow Actions" v. 0.8.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
Easily find the slowest actions and filters during a page request.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin196 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23723196

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin