84% eacsimplecdn

Code Review | {eac}Doojigger Simple CDN Extension for WordPress

WordPress plugin {eac}Doojigger Simple CDN Extension for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: eacsimplecdn
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 7
  • Update frequency: every 10.3 days
  • Top authors: kevinburkholder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.80ms] Passed 4 tests

An overview of server-side resources used by {eac}Doojigger Simple CDN Extension for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.59 ▼5.28
Dashboard /wp-admin3.32 ▲0.0144.11 ▼6.54
Posts /wp-admin/edit.php3.37 ▲0.0149.22 ▼1.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.20 ▼13.69
Media Library /wp-admin/upload.php3.24 ▲0.0132.61 ▲2.34

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for {eac}Doojigger Simple CDN Extension for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.67 ▼0.041.66 ▼0.3439.78 ▼4.56
Dashboard /wp-admin2,195 ▲215.58 ▼0.0494.27 ▼5.5542.44 ▼3.85
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.1339.10 ▲1.2736.25 ▲4.79
Add New Post /wp-admin/post-new.php1,528 ▲223.32 ▲0.08665.62 ▼18.8752.34 ▼5.62
Media Library /wp-admin/upload.php1,397 ▼04.22 ▲0.0195.49 ▼5.3040.44 ▼1.58

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'EarthAsylumConsulting\\Extensions\\simple_cdn_provider' not found in wp-content/plugins/eacsimplecdn/Extensions/includes/simple_cdn.keycdn.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EarthAsylumConsulting\\add_filter() in wp-content/plugins/eacsimplecdn/eacSimpleCDN.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'EarthAsylumConsulting\\abstract_extension' not found in wp-content/plugins/eacsimplecdn/Extensions/class.simple_cdn.extension.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'EarthAsylumConsulting\\Extensions\\simple_cdn_provider' not found in wp-content/plugins/eacsimplecdn/Extensions/includes/simple_cdn.cloudfront.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'EarthAsylumConsulting\\Extensions\\simple_cdn_provider' not found in wp-content/plugins/eacsimplecdn/Extensions/includes/simple_cdn.generic.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
10 plugin tags: content delivery network, rocketcdn, azure, eacdoojigger, keycdn...

eacsimplecdn/eacSimpleCDN.php 92% from 13 tests

"{eac}Doojigger Simple CDN Extension for WordPress" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("eacsimplecdn.php" instead of "eacSimpleCDN.php")

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
There were no executable files found in this plugin1,664 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP71875511,100
Markdown11110564

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.86
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods4393.48%
▷ Protected methods00.00%
▷ Private methods36.52%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
PNG images were not found in this plugin