84% 5centscdn

Code Review | 5centsCDN - WordPress CDN Plugin

WordPress plugin 5centsCDN - WordPress CDN Plugin scored84%from 54 tests.

About plugin

  • Plugin page: 5centscdn
  • Plugin version: 23.11.20
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Nov 20, 2023
  • Number of updates: 31
  • Update frequency: every 44.5 days
  • Top authors: 5centscdn (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,648 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.87ms] Passed 4 tests

An overview of server-side resources used by 5centsCDN - WordPress CDN Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.22 ▼4.71
Dashboard /wp-admin3.34 ▲0.0445.68 ▼5.15
Posts /wp-admin/edit.php3.39 ▲0.0347.90 ▲0.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.39 ▼2.53
Media Library /wp-admin/upload.php3.26 ▲0.0338.57 ▲5.00

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 135 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for 5centsCDN - WordPress CDN Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15014.66 ▲0.381.88 ▲0.0428.46 ▼14.21
Dashboard /wp-admin2,300 ▲1265.43 ▼0.18117.76 ▲15.49121.06 ▲78.06
Posts /wp-admin/edit.php2,208 ▲1082.69 ▲0.6958.03 ▲22.4461.32 ▲28.98
Add New Post /wp-admin/post-new.php1,629 ▲9323.46 ▲0.45623.79 ▲36.7648.58 ▲0.96
Media Library /wp-admin/upload.php1,496 ▲965.03 ▲0.81114.54 ▲17.3387.28 ▲45.43

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/promises/src/Coroutine.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/CachingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/promises/src/TaskQueue.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/AppendStream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: cdn, cache, seo, performance, optimization...

5centscdn/5centscdn.php 92% from 13 tests

The entry point to "5centsCDN - WordPress CDN Plugin" version 23.11.20 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 510 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
There were no executable files found in this plugin14,415 lines of code in 123 files:
LanguageFilesBlank linesComment linesLines of code
PHP971,8484,9529,176
Markdown111,04103,308
JavaScript128727786
CSS1788610
JSON800491
SVG30025
Dockerfile18010
make1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.72
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces8
Interfaces15
Traits2
Classes68
▷ Abstract classes00.00%
▷ Concrete classes68100.00%
▷ Final classes913.24%
Methods662
▷ Static methods7611.48%
▷ Public methods54181.72%
▷ Protected methods60.91%
▷ Private methods11517.37%
Functions162
▷ Named functions7546.30%
▷ Anonymous functions8753.70%
Constants62
▷ Global constants711.29%
▷ Class constants5588.71%
▷ Public constants55100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/menu-icon.png0.97KB0.76KB▼ 21.23%
assets/5centscdn.png6.22KB3.34KB▼ 46.28%
assets/fivecent_logo.png3.60KB2.27KB▼ 36.76%