Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.99ms] Passed 4 tests
This is a short check of server-side resources used by SecurePay For Restrict Content Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.59 ▼3.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.28 ▼5.92 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.13 ▼4.47 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 101.72 ▼9.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.13 ▲0.05 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SecurePay For Restrict Content Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.73 ▲0.44 | 1.61 ▼0.07 | 43.80 ▼1.17 |
Dashboard /wp-admin | 2,203 ▲31 | 5.63 ▼0.03 | 90.79 ▼16.36 | 41.60 ▼4.24 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▲0.03 | 41.67 ▼2.14 | 38.23 ▲4.77 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 17.98 ▼3.30 | 597.75 ▼178.04 | 59.39 ▼2.46 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.22 ▲0.04 | 100.17 ▼10.98 | 46.17 ▲0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: fpx, payment platform, malaysia, payment gateway, online banking
securepay-for-restrictcontentpro/securepay-for-restrictcontentpro.php 92% from 13 tests
The principal PHP file in "SecurePay For Restrict Content Pro" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected786 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 130 | 60 | 708 |
CSS | 2 | 5 | 0 | 40 |
JavaScript | 2 | 5 | 1 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 26 | |
▷ Static methods | 11 | 42.31% |
▷ Public methods | 14 | 53.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 46.15% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/securepay-bank-alt.png | 55.21KB | 17.34KB | ▼ 68.59% |
includes/admin/bnk/bkrm0602.png | 2.51KB | 1.57KB | ▼ 37.53% |
includes/admin/bnk/scb0216.png | 4.63KB | 2.54KB | ▼ 45.01% |
includes/admin/bnk/abmb0212.png | 2.70KB | 1.63KB | ▼ 39.49% |
includes/admin/bnk/test0022.png | 2.88KB | 1.52KB | ▼ 47.23% |