84% source-global-cdn

Code Review | Source Global CDN

WordPress plugin Source Global CDN scored 84% from 54 tests.

About plugin

  • Plugin page: source-global-cdn
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2022
  • Latest release: Mar 21, 2022
  • Number of updates: 6
  • Update frequency: every 9.7 days
  • Top authors: ahdark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 904 total downloads

Benchmarks

Plugin footprint 83% 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.17MB] [CPU: ▼6.07ms] Passed 4 tests

A check of server-side resources used by Source Global CDN
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.86 ▼2.33
Dashboard /wp-admin3.47 ▲0.1645.16 ▼3.06
Posts /wp-admin/edit.php3.56 ▲0.2147.93 ▲0.25
Add New Post /wp-admin/post-new.php6.16 ▲0.2777.91 ▼19.12
Media Library /wp-admin/upload.php3.40 ▲0.1835.07 ▲2.17
About /wp-admin/admin.php?page=sourcegcdn-about3.3233.92
Source GCDN /wp-admin/admin.php?page=sourcegcdn3.3232.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
source_admin
widget_recent-posts
db_upgraded
theysaidso_admin_options
sdn_gravatar

Browser metrics Passed 4 tests

This is an overview of browser requirements for Source Global CDN
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,623 ▼1123.55 ▼10.861.35 ▼0.3640.37 ▼3.84
Dashboard /wp-admin2,118 ▼701.63 ▼3.3919.29 ▼94.7334.89 ▼6.12
Posts /wp-admin/edit.php2,053 ▼331.40 ▼0.599.47 ▼26.5432.16 ▼1.43
Add New Post /wp-admin/post-new.php1,214 ▼3002.10 ▼15.4435.88 ▼650.285.96 ▼53.30
Media Library /wp-admin/upload.php1,008 ▼3772.04 ▼2.2522.39 ▼92.0326.16 ▼27.62
About /wp-admin/admin.php?page=sourcegcdn-about7991.408.8326.90
Source GCDN /wp-admin/admin.php?page=sourcegcdn8561.588.4635.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://avatar.sourcegcdn.com/avatar/dda8de772f53e64b26129d7f632ad1a3?s=26&d=mm&r=g - Failed to load resource: the server responded with a status of 404 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef - Failed to load resource: the server responded with a status of 521 ()
    • > GET request to /wp-admin/admin.php?page=sourcegcdn-about
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=sourcegcdn-about 181:8 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-includes/js/hoverintent-js.min.js?ver=2.2.1 - Failed to load resource: the server responded with a status of 521 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-includes/js/admin-bar.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 521 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-includes/js/heartbeat.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 521 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-admin/js/common.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 521 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-includes/js/wp-auth-check.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 521 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Network (severe)
    https://wp.sourcegcdn.com/core/6.3.1/wp-admin/js/svg-painter.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 521 ()
    • > GET request to /wp-admin/admin.php?page=sourcegcdn
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=sourcegcdn 198:8 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')

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
2 plugin tags: cdn, accelerate

source-global-cdn/source-global-cdn.php 92% from 13 tests

The entry point to "Source Global CDN" version 2.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin467 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23565232
PO File24252232
Markdown1203

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions10
▷ Named functions00.00%
▷ Anonymous functions10100.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu-icon.png3.77KB0.58KB▼ 84.53%