Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.91ms] Passed 4 tests
A check of server-side resources used by Payday
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.28 ▼4.72 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.22 ▼6.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.52 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.07 ▼8.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.94 ▲4.26 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Payday: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▲0.01 | 1.69 ▲0.07 | 42.84 ▼2.24 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.05 | 91.58 ▼9.64 | 39.78 ▼2.96 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▲0.02 | 40.44 ▲1.92 | 36.67 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.38 ▲0.13 | 663.80 ▲55.30 | 63.81 ▲12.67 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.02 | 98.47 ▼6.19 | 43.60 ▲1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'PAYDAY_DIR_PATHpayday-api-gateway/enums/enum-payday-gateway-error-code.php' (include_path='.:/usr/share/php') in wp-content/plugins/payday/payday-api-gateway/class-payday-gateway-error.php on line 3
- > PHP Warning
Use of undefined constant PAYDAY_DIR_PATH - assumed 'PAYDAY_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/payday/payday-api-gateway/class-payday-gateway-error.php on line 3
- > PHP Warning
require_once(PAYDAY_DIR_PATHpayday-api-gateway/enums/enum-payday-gateway-error-code.php): failed to open stream: No such file or directory in wp-content/plugins/payday/payday-api-gateway/class-payday-gateway-error.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in payday/assets to your readme.txt
payday/payday.php 92% from 13 tests
The main PHP script in "Payday" version 3.1.8 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected5,265 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 1,310 | 2,057 | 4,892 |
PO File | 1 | 150 | 235 | 342 |
Markdown | 1 | 18 | 0 | 31 |
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 code | 0.32 |
Average class complexity | 9.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 68 | |
▷ Abstract classes | 8 | 11.76% |
▷ Concrete classes | 60 | 88.24% |
▷ Final classes | 1 | 1.67% |
Methods | 246 | |
▷ Static methods | 91 | 36.99% |
▷ Public methods | 194 | 78.86% |
▷ Protected methods | 3 | 1.22% |
▷ Private methods | 49 | 19.92% |
Functions | 15 | |
▷ Named functions | 8 | 53.33% |
▷ Anonymous functions | 7 | 46.67% |
Constants | 96 | |
▷ Global constants | 8 | 8.33% |
▷ Class constants | 88 | 91.67% |
▷ Public constants | 88 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
payment_gateway_logo.png | 2.91KB | 2.00KB | ▼ 31.37% |