83% save-ferris-corner-ribbon

Code Review | Save Ferris Fundraiser Support Ribbon

WordPress plugin Save Ferris Fundraiser Support Ribbon scored83%from 54 tests.

About plugin

  • Plugin page: save-ferris-corne...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2012
  • Latest release: Sep 17, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: MidnightRyder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.35MB] [CPU: ▼16.60ms] Passed 4 tests

A check of server-side resources used by Save Ferris Fundraiser Support Ribbon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.15 ▼40.89
Dashboard /wp-admin3.31 ▲0.0049.65 ▼4.62
Posts /wp-admin/edit.php3.36 ▲0.0048.82 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.14 ▼17.95
Media Library /wp-admin/upload.php3.23 ▲0.0035.02 ▼2.94

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

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

Browser metrics Passed 4 tests

Save Ferris Fundraiser Support Ribbon: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.44 ▼0.151.72 ▼0.1542.04 ▼3.74
Dashboard /wp-admin2,203 ▲124.84 ▼0.04111.19 ▼6.0740.58 ▼12.82
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0541.44 ▲2.3133.18 ▼3.28
Add New Post /wp-admin/post-new.php1,542 ▲917.95 ▼5.25655.55 ▼12.3655.02 ▼0.45
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0193.06 ▼22.2940.60 ▼6.76

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/save-ferris-corner-ribbon/saveferris.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
You can take inspiration from this readme.txt

save-ferris-corner-ribbon/saveferris.php 85% from 13 tests

The main file in "Save Ferris Fundraiser Support Ribbon" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("save-ferris-corner-ribbon.php" instead of "saveferris.php")

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 plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
saveferrisribbon.png23.90KB6.91KB▼ 71.11%
screenshot-1.png62.68KB19.99KB▼ 68.11%