79% stonehenge-em-mollie

Code Review | Events Manager Pro - Mollie Payments

WordPress plugin Events Manager Pro - Mollie Payments scored79%from 54 tests.

About plugin

  • Plugin page: stonehenge-em-mollie
  • Plugin version: 2.4.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Jul 28, 2018
  • Latest release: Aug 8, 2020
  • Number of updates: 99
  • Update frequency: every 7.5 days
  • Top authors: DuisterDenHaag (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,602 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.55ms] Passed 4 tests

Server-side resources used by Events Manager Pro - Mollie Payments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.72 ▼6.16
Dashboard /wp-admin3.32 ▲0.0251.06 ▲1.17
Posts /wp-admin/edit.php3.37 ▲0.0249.62 ▼1.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.30 ▲6.88
Media Library /wp-admin/upload.php3.24 ▲0.0234.04 ▲0.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Events Manager Pro - Mollie Payments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.071.62 ▼0.1340.67 ▼3.49
Dashboard /wp-admin2,206 ▲215.84 ▲0.98112.28 ▲11.1244.52 ▼1.30
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0338.52 ▼2.8933.28 ▼3.41
Add New Post /wp-admin/post-new.php1,542 ▼218.39 ▲0.06617.33 ▲8.1954.78 ▲0.93
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0193.63 ▼8.1841.05 ▼5.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
  • 43× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/profiles/update-profile.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/payments/webhook.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/settlements/list-settlements.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/customers/create-customer-first-payment.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/subscriptions/cancel-subscription.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/orders/refund-order-completely.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/payments/list-methods.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/invoices/list-invoices.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/profiles/delete-profile.php
    • > /wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/shipments/update-shipment.php
  • 197× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Warning
      require_once(wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/stonehenge-em-mollie/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Warning
      require_once(wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' not found in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/src/Endpoints/OrderEndpoint.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/stonehenge-em-mollie/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/stonehenge-em-mollie/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: sofort, mollie, apply pay, bancontact, przelewy24...

stonehenge-em-mollie/stonehenge-em-mollie.php Passed 13 tests

The principal PHP file in "Events Manager Pro - Mollie Payments" v. 2.4.4 is loaded by WordPress automatically on each request
75 characters long description:
Adds 18 payment methods and 31 currencies to Events Manager Pro, instantly!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin18,024 lines of code in 267 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343,1779,74812,997
Markdown141,15103,534
JSON1000877
CSS430324
PO File18285250
JavaScript33133
make1409

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.32
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces15
Interfaces18
Traits3
Classes154
▷ Abstract classes53.25%
▷ Concrete classes14996.75%
▷ Final classes106.71%
Methods1,056
▷ Static methods969.09%
▷ Public methods85981.34%
▷ Protected methods757.10%
▷ Private methods12211.55%
Functions148
▷ Named functions5839.19%
▷ Anonymous functions9060.81%
Constants167
▷ Global constants00.00%
▷ Class constants167100.00%
▷ Public constants167100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/mollie-methods.png8.33KB8.90KB0.00%