84% debian-ribbon

Code Review | Debian ribbon

WordPress plugin Debian ribbon scored84%from 54 tests.

About plugin

  • Plugin page: debian-ribbon
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-3.9.2
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Jan 30, 2015
  • Number of updates: 9
  • Update frequency: every 68.7 days
  • Top authors: zpop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

This is a short check of server-side resources used by Debian ribbon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.90 ▼4.51
Dashboard /wp-admin3.31 ▲0.0148.05 ▼6.42
Posts /wp-admin/edit.php3.36 ▲0.0051.83 ▲1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.49 ▼6.65
Media Library /wp-admin/upload.php3.24 ▲0.0035.11 ▲0.06

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Debian ribbon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.29 ▼0.061.80 ▲0.1347.57 ▲5.27
Dashboard /wp-admin2,192 ▲125.62 ▼0.0691.98 ▼0.0242.45 ▼0.10
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0041.35 ▲3.2936.22 ▼3.94
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▲0.01645.91 ▲9.6457.21 ▲8.48
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.0199.45 ▼2.4842.92 ▼2.50

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
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debian-ribbon/debian-ribbon.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Here's how the ribbon will appear on your website.)
You can look at the official readme.txt

debian-ribbon/debian-ribbon.php Passed 13 tests

This is the main PHP file of "Debian ribbon" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
135 characters long description:
When activated, this plugin will put a Debian ribbon on the top right corner of your website. This is a fork of Stop censorship plugin.

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
There were no executable files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111311

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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 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.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
debian-ribbon.png4.10KB2.39KB▼ 41.64%
screenshot-1.png78.02KB30.63KB▼ 60.75%