Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.66ms] Passed 4 tests
Analyzing server-side resources used by Gcore CDN
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.97 ▼8.41 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.52 ▼4.51 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.26 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 83.26 ▼9.14 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 33.92 ▲0.91 |
CDN settings /wp-admin/admin.php?page=gcore_labs | 3.43 | 38.31 |
About /wp-admin/admin.php?page=gcore_labs_about | 3.30 | 30.50 |
Help /wp-admin/admin.php?page=gcore_labs_help | 3.30 | 28.41 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 18 new options
New WordPress options |
---|
gcore_folder_wp |
gcore_type_advanced |
gcore_type_js |
gcore_folder_advanced |
widget_recent-posts |
theysaidso_admin_options |
gcore_folder_content |
widget_recent-comments |
gcore_type_audio |
gcore_type_video |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gcore CDN
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.53 ▼0.83 | 1.55 ▼0.27 | 40.58 ▼12.45 |
Dashboard /wp-admin | 2,239 ▲51 | 5.83 ▼0.02 | 101.38 ▼17.70 | 81.51 ▲35.68 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 1.99 ▼0.01 | 37.61 ▲1.76 | 34.85 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,702 ▲160 | 24.46 ▲6.12 | 673.07 ▲33.56 | 53.93 ▼0.50 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.23 ▲0.06 | 98.43 ▼1.42 | 75.69 ▲31.92 |
CDN settings /wp-admin/admin.php?page=gcore_labs | 885 | 2.10 | 24.83 | 33.34 |
About /wp-admin/admin.php?page=gcore_labs_about | 808 | 2.01 | 24.17 | 23.44 |
Help /wp-admin/admin.php?page=gcore_labs_help | 781 | 2.05 | 26.51 | 25.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 18 options
- gcore_type_js
- gcore_folder_plugins
- gcore_type_archive
- widget_theysaidso_widget
- gcore_type_advanced
- gcore_type_image
- theysaidso_admin_options
- gcore_type_css
- gcore_type_video
- gcore_folder_wp
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-core-labs-cdn/includes/function.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-core-labs-cdn/includes/function.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/about.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/stream.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/g-core-labs-cdn/ajax/save.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% 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
7 plugin tags: content delivery network, cdn, pagespeed, caching, bandwidth...
g-core-labs-cdn/index.php 92% from 13 tests
"Gcore CDN" version 1.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("g-core-labs-cdn.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin1,711 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 100 | 133 | 1,153 |
PO File | 3 | 124 | 142 | 375 |
JavaScript | 2 | 8 | 5 | 146 |
CSS | 4 | 1 | 4 | 37 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-icon.png | 1.78KB | 0.60KB | ▼ 66.37% |