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.09MB] [CPU: ▼3.21ms] Passed 4 tests
Analyzing server-side resources used by Modena Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.73 ▼2.32 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.93 ▼6.36 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.06 ▼1.90 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.69 ▼2.24 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.77 ▲1.23 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Modena Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.67 ▲0.43 | 1.77 ▲0.13 | 38.36 ▼5.79 |
Dashboard /wp-admin | 2,212 ▲41 | 5.60 ▼0.07 | 95.19 ▼2.61 | 45.78 ▲2.35 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.99 ▼0.03 | 41.16 ▲3.92 | 37.20 ▲6.81 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.55 ▲0.49 | 678.69 ▲67.46 | 51.01 ▼6.90 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.04 | 106.28 ▲9.71 | 46.77 ▲6.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Modena\\Payment\\model\\ModenaBaseModel' not found in wp-content/plugins/modenapaymentgateway/lib/model/ModenaOrderItem.php:5
- > PHP Fatal error
Uncaught Error: Class 'Modena\\Payment\\model\\ModenaBaseModel' not found in wp-content/plugins/modenapaymentgateway/lib/model/ModenaCustomer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Modena\\Payment\\model\\ModenaBaseModel' not found in wp-content/plugins/modenapaymentgateway/lib/model/ModenaApplication.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #2 (Credit Payments), #3 (Pay In 3), #4 (Try Now Pay Later)
modenapaymentgateway/modena.php 85% from 13 tests
Analyzing the main PHP file in "Modena Payment Gateway" version 2.9.4
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("modenapaymentgateway.php" instead of "modena.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,658 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 277 | 317 | 1,519 |
CSS | 2 | 20 | 18 | 125 |
JavaScript | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 5 | 4.10% |
▷ Public methods | 82 | 67.21% |
▷ Protected methods | 13 | 10.66% |
▷ Private methods | 27 | 22.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 2 | 6.90% |
▷ Class constants | 27 | 93.10% |
▷ Public constants | 25 | 92.59% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected