84% 26-march-ribbon

Code Review | 26 March Ribbon

WordPress plugin 26 March Ribbon scored 84% from 54 tests.

About plugin

  • Plugin page: 26-march-ribbon
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2012
  • Latest release: Mar 22, 2012
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: cxbuppy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,712 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.00MB] [CPU: ▼3.89ms] Passed 4 tests

Analyzing server-side resources used by 26 March Ribbon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.86 ▼10.28
Dashboard /wp-admin3.31 ▲0.0145.38 ▼6.58
Posts /wp-admin/edit.php3.36 ▲0.0047.38 ▼0.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.50 ▲6.94
Media Library /wp-admin/upload.php3.23 ▲0.0035.91 ▲1.87

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

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

Browser metrics Passed 4 tests

A check of browser resources used by 26 March Ribbon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.34 ▼1.051.55 ▼0.2737.93 ▼11.43
Dashboard /wp-admin2,206 ▲324.86 ▼0.19107.07 ▼8.1637.74 ▼10.23
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0340.44 ▲2.5236.48 ▲1.61
Add New Post /wp-admin/post-new.php1,533 ▼923.33 ▲5.07617.46 ▼7.6354.99 ▼0.65
Media Library /wp-admin/upload.php1,385 ▼34.28 ▲0.07101.61 ▲2.2942.87 ▼3.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Good news, no errors were detected

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
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 add_action() in wp-content/plugins/26-march-ribbon/26-march-ribbon.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Here's how the ribbon will appear on your website.) image missing
You can take inspiration from this readme.txt

26-march-ribbon/26-march-ribbon.php Passed 13 tests

"26 March Ribbon" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
When activated, this plugin will put a ribbon on the top right corner of your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1287

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.68MB with 0.45MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png633.16KB228.90KB▼ 63.85%
26-march-ribbon.png60.87KB19.39KB▼ 68.15%