89% bunnycdn

Code Review | bunny.net - WordPress CDN Plugin

WordPress plugin bunny.net - WordPress CDN Plugin scored 89% from 54 tests.

About plugin

  • Plugin page: bunnycdn
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: May 9, 2023
  • Number of updates: 26
  • Update frequency: every 87.0 days
  • Top authors: bunnycdn (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

10,000+ active / 141,674 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.62ms] Passed 4 tests

An overview of server-side resources used by bunny.net - WordPress CDN Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.76 ▼6.13
Dashboard /wp-admin3.36 ▲0.0647.40 ▲1.82
Posts /wp-admin/edit.php3.47 ▲0.1250.12 ▼0.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.47 ▲3.43
Media Library /wp-admin/upload.php3.28 ▲0.0534.91 ▲1.90

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for bunny.net - WordPress CDN Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.30 ▼0.891.80 ▲0.0240.48 ▼7.51
Dashboard /wp-admin2,219 ▲315.83 ▲0.9495.58 ▼12.6640.00 ▼1.84
Posts /wp-admin/edit.php2,105 ▲132.03 ▲0.0340.77 ▲0.2735.95 ▼1.60
Add New Post /wp-admin/post-new.php1,552 ▲1823.16 ▲0.05655.37 ▼3.2550.44 ▲4.18
Media Library /wp-admin/upload.php1,407 ▲164.26 ▲0.0494.60 ▼4.3740.82 ▼9.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
4 plugin tags: content delivery network, cdn, bandwidth, performance

bunnycdn/bunnycdn.php 85% from 13 tests

The principal PHP file in "bunny.net - WordPress CDN Plugin" v. 1.0.8 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)

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
Everything looks great! No dangerous files found in this plugin517 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP37069411
SVG1101106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.33
▷ Minimum class complexity5.00
▷ Maximum class complexity10.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods866.67%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/bunnycdn-logo.png14.57KB6.95KB▼ 52.32%
inc/bunnynet-logo.png20.32KB8.79KB▼ 56.73%