Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.14MB] [CPU: ▼12.78ms] Passed 4 tests
A check of server-side resources used by ArvanCloud CDN
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 43.45 ▲2.10 |
Dashboard /wp-admin | 3.87 ▲0.56 | 56.80 ▲4.20 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 52.24 ▲3.01 |
Add New Post /wp-admin/post-new.php | 3.65 ▼2.24 | 39.45 ▼60.41 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 45.76 ▲8.32 |
About /wp-admin/admin.php?page=arvancloud-cdn-about | 4.17 | 385.43 |
CDN General Settings /wp-admin/admin.php?page=arvancloud-cdn | 4.17 | 411.59 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ArvanCloud CDN
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.33 ▼1.32 | 2.37 ▲0.61 | 48.14 ▲3.27 |
Dashboard /wp-admin | 2,234 ▲46 | 4.88 ▼0.98 | 114.92 ▼4.31 | 78.16 ▲35.02 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.00 ▼0.01 | 37.62 ▲0.27 | 36.42 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,549 ▲13 | 23.27 ▲0.03 | 687.83 ▼6.94 | 60.61 ▼0.96 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.29 ▲0.07 | 101.35 ▼13.45 | 75.28 ▲28.60 |
About /wp-admin/admin.php?page=arvancloud-cdn-about | 871 | 2.49 | 33.80 | 25.64 |
CDN General Settings /wp-admin/admin.php?page=arvancloud-cdn | 964 | 2.42 | 31.24 | 47.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
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
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Arvan\\Security\\HTTPS_Settings' not found in wp-content/plugins/arvancloud-cdn/admin/views/security/https_settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Arvan\\Security\\Firewall' not found in wp-content/plugins/arvancloud-cdn/admin/views/security/firewall_settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Arvan\\CDN\\Cache\\Caching_Settings' not found in wp-content/plugins/arvancloud-cdn/admin/views/cache/caching_settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Arvan\\Security\\DDoS_Protection' not found in wp-content/plugins/arvancloud-cdn/admin/views/security/ddos_protection.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/arvancloud-cdn/admin/views/options-display.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/arvancloud-cdn/admin/views/components/header.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/arvancloud-cdn/admin/views/reports/reports_status.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Arvan\\Helper' not found in wp-content/plugins/arvancloud-cdn/admin/views/components/footer.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/arvancloud-cdn/admin/views/about-us-display.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Arvan\\CDN\\Acceleration' not found in wp-content/plugins/arvancloud-cdn/admin/views/acceleration.php:4
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: cdn, arvancloud
arvancloud-cdn/wp-arvancloud-cdn.php 85% from 13 tests
The entry point to "ArvanCloud CDN" version 0.9.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("arvancloud-cdn.php" instead of "wp-arvancloud-cdn.php")
- Description: Keep the plugin description shorter than 140 characters (currently 234 characters long)
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
No dangerous file extensions were detected5,711 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 781 | 884 | 2,935 |
CSS | 4 | 200 | 9 | 1,350 |
JavaScript | 6 | 194 | 52 | 871 |
PO File | 1 | 190 | 294 | 546 |
SVG | 9 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 83 | 65.35% |
▷ Public methods | 94 | 74.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 33 | 25.98% |
Functions | 23 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 23 | 100.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 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
There are no PNG files in this plugin