90% circulair-geld

Code Review | Circulair Geld

WordPress plugin Circulair Geld scored90%from 54 tests.

About plugin

  • Plugin page: circulair-geld
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 3, 2021
  • Latest release: Mar 29, 2022
  • Number of updates: 9
  • Update frequency: every 26.9 days
  • Top authors: marcodaniel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,630 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
Installer ran successfully

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

This is a short check of server-side resources used by Circulair Geld
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.57 ▼7.57
Dashboard /wp-admin3.31 ▲0.0044.76 ▼2.39
Posts /wp-admin/edit.php3.36 ▲0.0046.28 ▼2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.92 ▼2.09
Media Library /wp-admin/upload.php3.23 ▲0.0033.53 ▼1.71

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Circulair Geld: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.161.69 ▼0.0340.82 ▼3.44
Dashboard /wp-admin2,203 ▲124.86 ▼1.04111.74 ▲11.6743.72 ▼0.81
Posts /wp-admin/edit.php2,086 ▼62.03 ▲0.0440.24 ▼0.7135.60 ▼1.87
Add New Post /wp-admin/post-new.php1,534 ▲323.20 ▲4.89602.71 ▼26.7153.45 ▼2.90
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.03100.17 ▼7.4343.26 ▼1.96

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: payments, woocommerce, payment gateway, circulair geld

circulair-geld/circulair-geld.php Passed 13 tests

The principal PHP file in "Circulair Geld" v. 1.0.7 is loaded by WordPress automatically on each request
89 characters long description:
A WordPress plugin that enables payments with Circulair Currency on WooCommerce webshops.

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 plugin731 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP68642548
PO File16364183

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods942.86%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/qr-code.png0.33KB0.34KB0.00%
assets/logo.png5.53KB2.05KB▼ 62.97%