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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.63 ▼4.89 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.80 ▼0.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 47.88 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 91.91 ▼4.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.42 | 1.75 ▼0.08 | 46.50 ▲2.66 |
Dashboard /wp-admin | 2,206 ▲32 | 5.85 ▼0.05 | 98.59 ▼12.48 | 38.98 ▼8.46 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▲0.00 | 39.40 ▼2.95 | 33.38 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.38 ▲0.35 | 614.72 ▼73.36 | 57.18 ▼1.50 |
Media Library /wp-admin/upload.php | 1,382 ▲3 | 4.21 ▲0.04 | 97.59 ▼2.54 | 41.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
- > PHP Parse error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 197 | 155 | 711 |
PO File | 1 | 37 | 39 | 85 |
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 code | 0.30 |
Average class complexity | 17.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 7 | 12.07% |
▷ Public methods | 47 | 81.03% |
▷ Protected methods | 11 | 18.97% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 57.02KB | 21.00KB | ▼ 63.16% |