Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▲4.77ms] Passed 4 tests
Analyzing server-side resources used by CDN Enabler Replace Content
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.91 ▲1.45 | 49.70 ▲8.55 |
Dashboard /wp-admin | 4.76 ▲1.46 | 57.74 ▲5.58 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 64.61 ▲15.23 |
Add New Post /wp-admin/post-new.php | 7.35 ▲1.47 | 92.37 ▼6.71 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 46.43 ▲11.67 |
Server storage [IO: ▲8.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 457 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CDN Enabler Replace Content
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲304 | 18.23 ▲3.88 | 1.82 ▲0.23 | 38.98 ▼2.30 |
Dashboard /wp-admin | 2,481 ▲301 | 8.88 ▲3.19 | 169.12 ▲80.19 | 43.29 ▲2.58 |
Posts /wp-admin/edit.php | 2,418 ▲315 | 6.09 ▲4.10 | 87.74 ▲45.34 | 35.23 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,606 ▲69 | 19.81 ▲1.66 | 718.54 ▲71.43 | 35.22 ▼33.48 |
Media Library /wp-admin/upload.php | 1,574 ▲177 | 6.62 ▲2.43 | 110.78 ▲5.36 | 40.93 ▼3.78 |
CDN Enabler Replace Contents /wp-admin/crb_carbon_fields_container_cdn_enabler_replace_contents.php | 26 | 0.42 | 0.07 | 14.16 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 113× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Field/Separator_Field.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Carbon_Fields' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/config.php:17
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Datastore/Empty_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Field/Association_Field.php:19
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Field/Select_Field.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Interface' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Datastore/Datastore.php:12
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Field/Header_Scripts_Field.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/cdn-enabler-replace-content/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Ancestor_Condition.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/crb_carbon_fields_container_cdn_enabler_replace_contents.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_cdn_enabler_replace_contents.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in cdn-enabler-replace-content/assets to your readme.txt
cdn-enabler-replace-content/functions.php 92% from 13 tests
The entry point to "CDN Enabler Replace Content" version 1.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cdn-enabler-replace-content.php" instead of "functions.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 plugin28,796 lines of code in 408 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 171 | 5,188 | 8,459 | 12,933 |
PHP | 147 | 2,532 | 6,793 | 9,226 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 339 | 0 | 1,769 |
CSS | 7 | 325 | 1,139 | 1,662 |
Markdown | 5 | 150 | 0 | 633 |
JSON | 4 | 0 | 0 | 371 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 122 | |
▷ Abstract classes | 11 | 9.02% |
▷ Concrete classes | 111 | 90.98% |
▷ Final classes | 1 | 0.90% |
Methods | 914 | |
▷ Static methods | 105 | 11.49% |
▷ Public methods | 744 | 81.40% |
▷ Protected methods | 165 | 18.05% |
▷ Private methods | 5 | 0.55% |
Functions | 107 | |
▷ Named functions | 26 | 24.30% |
▷ Anonymous functions | 81 | 75.70% |
Constants | 28 | |
▷ Global constants | 5 | 17.86% |
▷ Class constants | 23 | 82.14% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin