89% swiss-5-cent-rounding

Code Review | Swiss 5-cent Rounding

WordPress plugin Swiss 5-cent Rounding scored89%from 54 tests.

About plugin

  • Plugin page: swiss-5-cent-roun...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.5
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: May 31, 2022
  • Number of updates: 6
  • Update frequency: every 116.5 days
  • Top authors: hostbliss (83.33%)swissplugins (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,981 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Swiss 5-cent Rounding
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.83 ▲1.32
Dashboard /wp-admin3.31 ▲0.0045.34 ▼4.66
Posts /wp-admin/edit.php3.36 ▲0.0045.31 ▼1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.17 ▼19.03
Media Library /wp-admin/upload.php3.23 ▲0.0032.05 ▼1.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Swiss 5-cent Rounding
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼1.031.71 ▲0.1644.76 ▲5.15
Dashboard /wp-admin2,206 ▲154.86 ▼1.04102.17 ▼0.7640.08 ▼5.61
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0234.49 ▼7.1635.40 ▼0.95
Add New Post /wp-admin/post-new.php1,536 ▼823.39 ▲5.18584.29 ▼45.7447.44 ▼4.03
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0393.71 ▼4.4242.12 ▼2.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

swiss-5-cent-rounding/swiss-5-cent-rounding.php 92% from 13 tests

The primary PHP file in "Swiss 5-cent Rounding" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected183 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43692139
PO File1121244

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods640.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected