Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼17.86ms] Passed 4 tests
This is a short check of server-side resources used by WP CDN Rewrite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 39.78 ▼3.82 |
Dashboard /wp-admin | 3.55 ▲0.24 | 50.54 ▼10.94 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.16 ▼10.12 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 86.26 ▼46.54 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.95 ▼0.56 |
CDN Rewrite /wp-admin/options-general.php?page=cdn_general-page | 3.38 | 31.59 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
cdn_general |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP CDN Rewrite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.25 ▼1.18 | 1.92 ▲0.06 | 42.05 ▼6.77 |
Dashboard /wp-admin | 2,207 ▲22 | 5.81 ▼0.07 | 99.38 ▼20.72 | 39.65 ▼9.83 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.02 | 39.74 ▼4.91 | 36.39 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,539 ▲1 | 23.15 ▼0.00 | 582.34 ▼136.09 | 59.66 ▼4.84 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.19 ▼0.02 | 95.13 ▲1.66 | 43.22 ▼0.01 |
CDN Rewrite /wp-admin/options-general.php?page=cdn_general-page | 872 | 2.03 | 23.88 | 28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- cdn_general
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cdn-rewrite/wp-cdn-rewrite-core.php:232
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cdn-rewrite/wp-cdn-rewrite-core.php:232
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cdn-rewrite/wp-cdn-rewrite-core.php:232
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: cdn, rewrite
wp-cdn-rewrite/wp-cdn-rewrite.php Passed 13 tests
The main PHP script in "WP CDN Rewrite" version 0.4.0 is automatically included on every request by WordPress
26 characters long description:
Rewrites asset URLs to CDN
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin866 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 182 | 312 | 829 |
JSON | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 4 | 6.15% |
▷ Public methods | 59 | 90.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.23% |
Functions | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin