Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼4.71ms] Passed 4 tests
Analyzing server-side resources used by CC-Deploy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 41.55 ▼2.55 |
Dashboard /wp-admin | 3.63 ▲0.32 | 51.37 ▲2.72 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 46.81 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 82.56 ▼18.51 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.99 ▲1.87 |
Logs /wp-admin/admin.php?page=cc-deploy-logs | 3.48 | 35.34 |
Settings /wp-admin/admin.php?page=cc-deploy-settings | 3.48 | 33.47 |
Server storage [IO: ▲0.35MB] [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: 57 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cc_deploy_log |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CC-Deploy: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.20 ▼1.20 | 1.85 ▲0.08 | 42.99 ▲0.72 |
Dashboard /wp-admin | 2,242 ▲54 | 4.87 ▼0.02 | 107.67 ▼2.95 | 42.90 ▼2.26 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.06 ▲0.04 | 35.96 ▼0.31 | 34.49 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 23.26 ▲5.58 | 667.35 ▼6.50 | 55.11 ▲7.96 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.23 ▼0.02 | 98.04 ▼2.34 | 43.03 ▼4.81 |
Logs /wp-admin/admin.php?page=cc-deploy-logs | 921 | 2.04 | 27.45 | 26.47 |
Settings /wp-admin/admin.php?page=cc-deploy-settings | 1,014 | 2.20 | 22.57 | 25.39 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (**CC-Deploy Settings** - Visit the 'Deploy > Settings' page, select your preferred options and save them.), #2 (**CC-Deploy Logs** - Visit the 'Deploy > Logs' page to review latest deployment logs.)
cc-deploy/plugin.php 92% from 13 tests
The main file in "CC-Deploy" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cc-deploy.php" instead of "plugin.php")
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 detected1,407 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 330 | 373 | 1,274 |
JSON | 3 | 0 | 0 | 118 |
Markdown | 1 | 5 | 0 | 8 |
CSS | 2 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 20 | 19.61% |
▷ Public methods | 86 | 84.31% |
▷ Protected methods | 13 | 12.75% |
▷ Private methods | 3 | 2.94% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 115.15KB | 45.06KB | ▼ 60.86% |
screenshot-2.png | 93.77KB | 34.41KB | ▼ 63.30% |