84% amnl-ideal-using-mollie

Code Review | AMNL iDeal using Mollie

WordPress plugin AMNL iDeal using Mollie scored84%from 54 tests.

About plugin

  • Plugin page: amnl-ideal-using-...
  • Plugin version: 0.0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-3.3.2
  • WordPress version: 6.3.1
  • First release: May 10, 2012
  • Latest release: May 21, 2012
  • Number of updates: 9
  • Update frequency: every 2.0 days
  • Top authors: arnomnl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,724 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.83ms] Passed 4 tests

A check of server-side resources used by AMNL iDeal using Mollie
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.63 ▼4.89
Dashboard /wp-admin3.32 ▲0.0247.80 ▼0.44
Posts /wp-admin/edit.php3.38 ▲0.0147.88 ▼1.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0191.91 ▼4.47
Media Library /wp-admin/upload.php3.25 ▲0.0134.51 ▼0.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for AMNL iDeal using Mollie
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.421.75 ▼0.0846.50 ▲2.66
Dashboard /wp-admin2,206 ▲325.85 ▼0.0598.59 ▼12.4838.98 ▼8.46
Posts /wp-admin/edit.php2,086 ▼31.99 ▲0.0039.40 ▼2.9533.38 ▼2.52
Add New Post /wp-admin/post-new.php1,522 ▼1123.38 ▲0.35614.72 ▼73.3657.18 ▼1.50
Media Library /wp-admin/upload.php1,382 ▲34.21 ▲0.0497.59 ▼2.5441.94 ▼2.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/amnl-ideal-using-mollie/src/WooCommerce/IDeal/Gateway.php on line 188
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AMNL\\WordPress\\plugin_basename() in wp-content/plugins/amnl-ideal-using-mollie/src/WordPress/IDealPlugin.php:42

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Payment Gateway settings within WooCommerce)
You can look at the official readme.txt

amnl-ideal-using-mollie/amnl-wc-ideal.php 92% from 13 tests

The main file in "AMNL iDeal using Mollie" v. 0.0.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("amnl-ideal-using-mollie.php" instead of "amnl-wc-ideal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin796 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6197155711
PO File1373985

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.20
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods58
▷ Static methods712.07%
▷ Public methods4781.03%
▷ Protected methods1118.97%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.02KB21.00KB▼ 63.16%