99% i-love-xm24-ribbon

Code Review | Wordpress I love Xm24 Ribbon

WordPress plugin Wordpress I love Xm24 Ribbon scored 99% from 53 tests.

About plugin

  • Plugin page: i-love-xm24-ribbon
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 5.8.1
  • First release: Mar 10, 2017
  • Latest release: Apr 3, 2017
  • Number of updates: 5
  • Update frequency: every 3.6 days
  • Top authors: steppade (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 612 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼261.28ms] Passed 4 tests

An overview of server-side resources used by Wordpress I love Xm24 Ribbon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.55 ▲7.88
Dashboard /wp-admin3.06 ▲0.0148.07 ▼4.33
Posts /wp-admin/edit.php3.11 ▲0.0144.48 ▼2.32
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.39 ▼1,033.93
Media Library /wp-admin/upload.php3.01 ▼0.0034.32 ▼4.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordpress I love Xm24 Ribbon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲8815.94 ▲0.388.81 ▼0.9654.56 ▲0.07
Dashboard /wp-admin2,929 ▲795.93 ▲0.10165.16 ▲18.45114.92 ▲7.71
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0065.88 ▼6.0686.14 ▼14.19
Add New Post /wp-admin/post-new.php1,656 ▲17516.84 ▼1.53356.07 ▼28.98107.78 ▼11.64
Media Library /wp-admin/upload.php1,772 ▼04.99 ▲0.01157.78 ▼10.01115.57 ▼1.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === i-love-xm24-ribbon === )
You can look at the official readme.txt

i-love-xm24-ribbon/ilovexm24.php 77% from 13 tests

The main file in "Wordpress I love Xm24 Ribbon" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("i-love-xm24-ribbon.php" instead of "ilovexm24.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin66 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152731
CSS14028
Markdown1304
JavaScript1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin