Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.58ms] Passed 4 tests
An overview of server-side resources used by Medianova CDN
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.13 ▼3.75 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.32 ▼4.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.30 ▼4.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.48 ▼14.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.72 ▲4.43 |
CDN Medianova /wp-admin/options-general.php?page=cdn_medianova | 3.21 | 32.89 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Cdn_Medianova |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Medianova CDN
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 14.44 ▼0.15 | 1.78 ▼0.79 | 45.61 ▼10.45 |
Dashboard /wp-admin | 2,212 ▲21 | 4.86 ▼0.02 | 108.18 ▼13.24 | 42.01 ▼7.15 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.07 ▲0.06 | 39.73 ▲0.55 | 35.70 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,400 ▼119 | 17.94 ▼5.33 | 611.32 ▼23.06 | 47.67 ▼4.06 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.29 ▲0.10 | 98.35 ▼1.07 | 43.32 ▼1.78 |
CDN Medianova /wp-admin/options-general.php?page=cdn_medianova | 965 | 2.14 | 25.62 | 41.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/medianova-cdn/index.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were no plugin tags found
medianova-cdn/index.php 85% from 13 tests
The main PHP file in "Medianova CDN" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("medianova-cdn.php" instead of "index.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,175 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 153 | 24 | 714 |
PHP | 4 | 132 | 208 | 461 |
PHP code Passed 2 tests
An overview 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.23 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 36 | |
▷ Static methods | 14 | 38.89% |
▷ Public methods | 27 | 75.00% |
▷ Protected methods | 9 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.52MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 3.89KB | 1.94KB | ▼ 50.10% |
assets/banner-1544x500.png | 31.19KB | 14.19KB | ▼ 54.51% |
assets/screenshot-1.png | 473.39KB | 130.83KB | ▼ 72.36% |
assets/banner-772x250.png | 14.06KB | 6.83KB | ▼ 51.42% |
assets/img/bttn_arrow.png | 0.18KB | 0.27KB | 0.00% |