Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.67ms] Passed 4 tests
A check of server-side resources used by CDNsun - WordPress CDN Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.99 ▲0.80 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.02 ▼10.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.33 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.71 ▼19.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.69 ▲1.15 |
CDNsun /wp-admin/options-general.php?page=cdnsun | 3.20 | 28.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cdnsun |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CDNsun - WordPress CDN Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.27 ▼0.09 | 1.69 ▲0.09 | 42.82 ▲2.42 |
Dashboard /wp-admin | 2,202 ▲32 | 5.61 ▼0.05 | 89.81 ▼10.56 | 41.02 ▲0.85 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.05 | 38.59 ▲1.65 | 34.14 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.38 ▲0.27 | 668.53 ▼7.87 | 50.84 ▼6.21 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.05 | 94.25 ▼0.71 | 42.96 ▲1.11 |
CDNsun /wp-admin/options-general.php?page=cdnsun | 915 | 2.03 | 22.37 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please a description for screenshot #1 in cdnsun/assets to your readme.txt
cdnsun/cdnsun.php Passed 13 tests
The main PHP file in "CDNsun - WordPress CDN Plugin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Integrates any Content Delivery Network (CDN) into WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected382 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 40 | 35 | 382 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 17 | |
▷ Static methods | 10 | 58.82% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin