Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼278.56ms] Passed 4 tests
Analyzing server-side resources used by Custom Variables
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 40.30 ▲19.83 |
Dashboard /wp-admin | 3.08 ▲0.02 | 47.20 ▼25.51 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 43.21 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 85.65 ▼1,077.35 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 33.30 ▼8.84 |
Custom Variables /wp-admin/options-general.php?page=cvem_options | 2.96 | 21.02 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Variables
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,658 ▲52 | 15.89 ▲0.22 | 10.94 ▲2.75 | 48.10 ▲2.07 |
Dashboard /wp-admin | 2,936 ▲86 | 5.98 ▲0.08 | 132.76 ▼13.49 | 98.86 ▼7.38 |
Posts /wp-admin/edit.php | 2,712 ▲6 | 2.69 ▼0.00 | 64.10 ▼8.00 | 87.97 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,869 ▼169 | 15.54 ▼3.90 | 367.48 ▼1.31 | 106.07 ▼3.58 |
Media Library /wp-admin/upload.php | 1,784 ▲12 | 5.03 ▲0.01 | 143.54 ▼18.79 | 107.39 ▼11.87 |
Custom Variables /wp-admin/options-general.php?page=cvem_options | 1,092 | 2.35 | 56.20 | 56.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=cvem_options
- > Notice in wp-content/plugins/custom-variables/includes/setting.php+72
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=cvem_options
- > Warning in wp-content/plugins/custom-variables/includes/setting.php+72
count(): Parameter must be an array or an object that implements Countable
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
The following issues need your attention
- 4× 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/custom-variables/includes/setting.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-variables/includes/scripts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-variables/includes/display-functions.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-variables/custom-variables.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Plugin setting page)
custom-variables/custom-variables.php 92% from 13 tests
The principal PHP file in "Custom Variables" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 440 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
Everything looks great! No dangerous files found in this plugin151 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 48 | 18 | 125 |
JavaScript | 1 | 4 | 0 | 20 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin