Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲30.86MB] [CPU: ▼224.96ms] 75% from 4 tests
This is a short check of server-side resources used by PMC Benchmark
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 30.86MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 29.33 ▲26.61 | 75.12 ▲53.48 |
Dashboard /wp-admin | 42.13 ▲39.08 | 116.71 ▲68.56 |
Posts /wp-admin/edit.php | 33.61 ▲30.51 | 79.74 ▲32.37 |
Add New Post /wp-admin/post-new.php | 32.67 ▲27.24 | 76.74 ▼1,054.23 |
Media Library /wp-admin/upload.php | 46.54 ▲43.53 | 200.02 ▲160.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for PMC Benchmark
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 16.31 ▲0.36 | 9.02 ▲1.14 | 44.14 ▼5.75 |
Dashboard /wp-admin | 2,927 ▲74 | 5.92 ▲0.12 | 163.93 ▲9.58 | 123.51 ▲19.68 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.01 | 63.22 ▼9.52 | 90.38 ▼12.43 |
Add New Post /wp-admin/post-new.php | 45 ▼1,436 | 0.90 ▼17.65 | 0.04 ▼392.48 | 31.75 ▼96.94 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.00 ▼0.01 | 147.39 ▲0.27 | 119.87 ▲3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- recovery_mode_email_last_sent
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmc-benchmark/pmc-benchmark.php:21
- > PHP Fatal error
Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/pmc-benchmark/class-pmc-benchmark.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 uses markdown syntax to describe your plugin to the world
6 plugin tags: benchmark, debug bar, profiling, performance, debug...
pmc-benchmark/pmc-benchmark.php 92% from 13 tests
Analyzing the main PHP file in "PMC Benchmark" version 1.1
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 271 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected384 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 89 | 215 |
JavaScript | 1 | 41 | 57 | 138 |
CSS | 1 | 10 | 10 | 31 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 8 | 61.54% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin