Benchmarks
Plugin footprint 83% 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.08MB] [CPU: ▲1.57ms] Passed 4 tests
A check of server-side resources used by CC-Scripts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 39.55 ▲3.07 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.71 ▼0.64 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.33 ▲6.48 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 97.03 ▼0.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.30 ▲4.15 |
Scripts /wp-admin/options-general.php?page=scripts | 3.32 | 33.24 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Clearcode\Scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CC-Scripts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.35 ▼0.41 | 1.70 ▲0.06 | 36.07 ▼6.07 |
Dashboard /wp-admin | 2,203 ▲23 | 5.59 ▼0.05 | 83.59 ▼3.81 | 37.76 ▼7.85 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.03 ▲0.06 | 39.70 ▲2.82 | 36.70 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.31 ▲0.33 | 593.71 ▼63.49 | 47.23 ▼6.68 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.26 ▲0.08 | 100.62 ▲5.41 | 41.96 ▼0.97 |
Scripts /wp-admin/options-general.php?page=scripts | 1,048 | 2.19 | 25.35 | 29.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Screenshot #1 (**WordPress General Settings** - Visit 'Settings > Scripts', add your scripts into the head and/or body fields and chose the method of inclusion.) image not found
cc-scripts/plugin.php 92% from 13 tests
The entry point to "CC-Scripts" version 1.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cc-scripts.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected1,184 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 418 | 1,100 |
PO File | 1 | 22 | 35 | 73 |
JavaScript | 1 | 2 | 0 | 8 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short 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.62 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 16 | 28.07% |
▷ Public methods | 40 | 70.18% |
▷ Protected methods | 16 | 28.07% |
▷ Private methods | 1 | 1.75% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 163.54KB | 58.67KB | ▼ 64.12% |