72% cdn-enabler-replace-content

Code Review | CDN Enabler Replace Content

WordPress plugin CDN Enabler Replace Content scored72%from 54 tests.

About plugin

  • Plugin page: cdn-enabler-repla...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: Jul 2, 2022
  • Latest release: Jul 8, 2022
  • Number of updates: 36
  • Update frequency: every 0.2 days
  • Top authors: jundellagbo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /676 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /4.91 ▲1.4549.70 ▲8.55
Dashboard /wp-admin4.76 ▲1.4657.74 ▲5.58
Posts /wp-admin/edit.php4.81 ▲1.4564.61 ▲15.23
Add New Post /wp-admin/post-new.php7.35 ▲1.4792.37 ▼6.71
Media Library /wp-admin/upload.php4.66 ▲1.4346.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

Browser metrics Passed 4 tests

Checking browser requirements for CDN Enabler Replace Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲30418.23 ▲3.881.82 ▲0.2338.98 ▼2.30
Dashboard /wp-admin2,481 ▲3018.88 ▲3.19169.12 ▲80.1943.29 ▲2.58
Posts /wp-admin/edit.php2,418 ▲3156.09 ▲4.1087.74 ▲45.3435.23 ▼2.01
Add New Post /wp-admin/post-new.php1,606 ▲6919.81 ▲1.66718.54 ▲71.4335.22 ▼33.48
Media Library /wp-admin/upload.php1,574 ▲1776.62 ▲2.43110.78 ▲5.3640.93 ▼3.78
CDN Enabler Replace Contents /wp-admin/crb_carbon_fields_container_cdn_enabler_replace_contents.php260.420.0714.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

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)


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: The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PO File268191,0202,202

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 code0.28
Average class complexity8.58
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes119.02%
▷ Concrete classes11190.98%
▷ Final classes10.90%
▷ Static methods10511.49%
▷ Public methods74481.40%
▷ Protected methods16518.05%
▷ Private methods50.55%
▷ Named functions2624.30%
▷ Anonymous functions8175.70%
▷ Global constants517.86%
▷ Class constants2382.14%
▷ Public constants23100.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