84% coralcdn

Code Review | CoralCDN

WordPress plugin CoralCDN scored84%from 54 tests.

About plugin

  • Plugin page: coralcdn
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Sep 2, 2014
  • Number of updates: 11
  • Update frequency: every 36.0 days
  • Top authors: morganestes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,898 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by CoralCDN
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.75 ▼6.86
Dashboard /wp-admin3.32 ▲0.0148.08 ▼2.80
Posts /wp-admin/edit.php3.37 ▲0.0147.76 ▼2.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.17 ▼17.45
Media Library /wp-admin/upload.php3.24 ▲0.0137.17 ▲4.27

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/coralcdn/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CoralCDN
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.48 ▲0.242.06 ▲0.3644.28 ▲1.11
Dashboard /wp-admin2,218 ▲185.81 ▼0.0999.39 ▼6.6840.14 ▼4.83
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0538.72 ▼3.1536.10 ▼7.26
Add New Post /wp-admin/post-new.php1,532 ▼2323.32 ▲4.94684.86 ▲76.0773.84 ▲24.01
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.00103.07 ▼2.1348.32 ▲2.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/coralcdn/coral-cdn.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: speed, cdn, content delivery network, performance

coralcdn/coral-cdn.php 92% from 13 tests

The main PHP file in "CoralCDN" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("coralcdn.php" instead of "coral-cdn.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1186748

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods19.09%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin