89% uyond-cdn

Code Review | Uyond CDN

WordPress plugin Uyond CDN scored89%from 54 tests.

About plugin

  • Plugin page: uyond-cdn
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Feb 12, 2021
  • Latest release: Aug 11, 2021
  • Number of updates: 19
  • Update frequency: every 9.5 days
  • Top authors: uyond (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,052 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.10ms] 75% from 4 tests

Server-side resources used by Uyond CDN
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 681.16ms on /wp-admin/admin.php?page=uyond-cdn-status)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.72 ▼1.56
Dashboard /wp-admin3.45 ▲0.1452.15 ▲2.34
Posts /wp-admin/edit.php3.56 ▲0.2055.67 ▼0.67
Add New Post /wp-admin/post-new.php6.03 ▲0.1491.23 ▼4.50
Media Library /wp-admin/upload.php3.37 ▲0.1441.03 ▲4.67
Setup Wizard /wp-admin/admin.php?page=uyond-cdn-setup3.3435.62
General /wp-admin/admin.php?page=uyond-cdn3.3435.33
About /wp-admin/admin.php?page=uyond-cdn-about3.3434.66
Status /wp-admin/admin.php?page=uyond-cdn-status3.35681.16

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

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

Browser metrics Passed 4 tests

Uyond CDN: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.73 ▲0.151.98 ▲0.3239.64 ▼1.38
Dashboard /wp-admin2,260 ▲865.66 ▲0.1483.34 ▼4.3743.04 ▲2.39
Posts /wp-admin/edit.php2,162 ▲592.02 ▲0.0436.59 ▼6.6937.56 ▲1.45
Add New Post /wp-admin/post-new.php1,556 ▲2823.06 ▲0.03627.77 ▼49.2666.75 ▲10.75
Media Library /wp-admin/upload.php1,465 ▲624.20 ▲0.02100.18 ▲3.4243.74 ▼2.02
Setup Wizard /wp-admin/admin.php?page=uyond-cdn-setup8762.0427.9336.87
General /wp-admin/admin.php?page=uyond-cdn8542.0025.5025.16
About /wp-admin/admin.php?page=uyond-cdn-about8452.0129.8626.40
Status /wp-admin/admin.php?page=uyond-cdn-status8632.0024.8623.37

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: cdn, images, pagespeed, optimize, performance...

uyond-cdn/uyond-cdn.php 92% from 13 tests

This is the main PHP file of "Uyond CDN" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin836 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9192427711
CSS1220125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.12
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods59
▷ Static methods915.25%
▷ Public methods4474.58%
▷ Protected methods813.56%
▷ Private methods711.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants640.00%
▷ Class constants960.00%
▷ Public constants888.89%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png52.50KB27.63KB▼ 47.38%
assets/img/banner.png35.06KB17.09KB▼ 51.26%