90% cdn-enabler

Code Review | CDN Enabler

WordPress plugin CDN Enabler scored90%from 54 tests.

About plugin

  • Plugin page: cdn-enabler
  • Plugin version: 2.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2015
  • Latest release: May 19, 2023
  • Number of updates: 74
  • Update frequency: every 38.6 days
  • Top authors: keycdn (100%)

Code review

54 tests

User reviews

48 reviews

Install metrics

20,000+ active /692,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼8.36ms] Passed 4 tests

This is a short check of server-side resources used by CDN Enabler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1546.83 ▼3.49
Dashboard /wp-admin3.51 ▲0.2060.18 ▼0.78
Posts /wp-admin/edit.php3.61 ▲0.2556.12 ▼8.89
Add New Post /wp-admin/post-new.php6.18 ▲0.29101.86 ▼20.27
Media Library /wp-admin/upload.php3.45 ▲0.2243.41 ▲1.69
CDN Enabler /wp-admin/options-general.php?page=cdn-enabler3.3747.84

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
cdn_enabler
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by CDN Enabler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.442.03 ▲0.0340.98 ▼9.48
Dashboard /wp-admin2,199 ▲225.68 ▲0.01101.56 ▼4.4945.14 ▲1.75
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0247.35 ▲1.2137.04 ▼10.97
Add New Post /wp-admin/post-new.php1,538 ▲1018.40 ▼4.44700.60 ▼3.2472.75 ▲17.15
Media Library /wp-admin/upload.php1,404 ▲14.20 ▼0.03119.05 ▲2.6249.10 ▼1.68
CDN Enabler /wp-admin/options-general.php?page=cdn-enabler9522.1352.5847.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: content distribution network, content delivery network, cdn

cdn-enabler/cdn-enabler.php Passed 13 tests

The entry point to "CDN Enabler" version 2.0.6 is a PHP file that has certain tags in its header comment area
76 characters long description:
Simple and fast WordPress content delivery network (CDN) integration plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin720 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4309485708
CSS23112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity34.00
▷ Minimum class complexity2.00
▷ Maximum class complexity64.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes266.67%
Methods45
▷ Static methods4293.33%
▷ Public methods2760.00%
▷ Protected methods00.00%
▷ Private methods1840.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected