Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▲1,325.00ms] 50% from 4 tests
A check of server-side resources used by C9 Variables
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 3,234.42ms on /wp-admin/admin.php?page=c9_vars_other_plugins)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,325.00ms on /wp-admin/admin.php?page=c9_vars_other_plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 45.11 ▲0.67 |
Dashboard /wp-admin | 3.69 ▲0.39 | 1,999.92 ▲1,944.20 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 1,849.70 ▲1,796.31 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 1,917.36 ▲1,819.69 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 1,719.63 ▲1,683.33 |
About Variables /wp-admin/admin.php?page=c9_vars_about | 3.57 | 2,008.29 |
Settings /wp-admin/admin.php?page=c9_vars_settings | 3.58 | 3,181.99 |
Other Plugins /wp-admin/admin.php?page=c9_vars_other_plugins | 3.57 | 3,234.42 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for C9 Variables
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲136 | 13.69 ▼0.68 | 5.87 ▲3.74 | 43.99 ▼5.99 |
Dashboard /wp-admin | 2,230 ▲56 | 5.54 ▼0.03 | 82.57 ▼15.81 | 75.27 ▲31.86 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.01 ▲0.06 | 34.57 ▼1.53 | 36.48 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.10 ▲0.10 | 713.77 ▲13.56 | 63.94 ▲3.92 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.18 ▲0.02 | 97.67 ▼11.42 | 74.64 ▲27.57 |
About Variables /wp-admin/admin.php?page=c9_vars_about | 873 | 2.03 | 23.98 | 37.58 |
Settings /wp-admin/admin.php?page=c9_vars_settings | 861 | 1.83 | 25.47 | 30.09 |
Other Plugins /wp-admin/admin.php?page=c9_vars_other_plugins | 887 | 2.06 | 24.25 | 33.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=c9_vars_other_plugins
- > Warning in wp-content/plugins/c9-variables/includes/code/basic/admin/ui/class-c9-variables-admin-ui.php+89
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/c9-variables/admin/partials/c9-variables-admin-display.php
- > /wp-content/plugins/c9-variables/includes/code/basic/admin/ui/variable-selector.php
- > /wp-content/plugins/c9-variables/public/partials/c9-variables-public-display.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=c9_vars_other_plugins
- > Network (severe)
https://cloudnineapps.com/images/products/wordpress-plugins/c9-variables-pro/c9-variables-pro.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: modularize, modularization, tools, easy maintain, simplify...
c9-variables/c9-variables.php Passed 13 tests
Analyzing the main PHP file in "C9 Variables" version 1.0.0
45 characters long description:
Use variables to make smart reusable content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,369 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 292 | 831 | 1,176 |
CSS | 3 | 23 | 10 | 129 |
JavaScript | 2 | 2 | 29 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 20 | 22.99% |
▷ Public methods | 73 | 83.91% |
▷ Protected methods | 9 | 10.34% |
▷ Private methods | 5 | 5.75% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-bw-20x20.png | 0.49KB | 0.31KB | ▼ 36.83% |
admin/images/icon-128x128.png | 6.19KB | 3.38KB | ▼ 45.42% |
assets/images/icon-256x256.png | 13.20KB | 6.26KB | ▼ 52.56% |
assets/images/icon-128x128.png | 6.19KB | 3.38KB | ▼ 45.42% |