Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.29ms] Passed 4 tests
Server-side resources used by NUAPAY WordPress Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.66 ▼7.08 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.12 ▼2.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.56 ▼3.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.09 ▼11.51 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.05 ▼3.41 |
NUAPAY Options /wp-admin/options-general.php?page=np_menu_slug | 3.24 | 29.79 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by NUAPAY WordPress Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.03 | 1.78 ▼0.10 | 41.70 ▼4.79 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.93 | 99.56 ▼9.94 | 40.20 ▼2.17 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.96 ▼0.04 | 39.67 ▼0.51 | 35.81 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.04 ▼0.03 | 661.51 ▼4.89 | 62.98 ▲8.63 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.23 ▲0.02 | 97.92 ▼8.34 | 44.08 ▼3.09 |
NUAPAY Options /wp-admin/options-general.php?page=np_menu_slug | 814 | 2.05 | 23.45 | 25.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=np_menu_slug
- > Notice in wp-content/plugins/nuapay-emandates/views/admin.php+13
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nuapay-emandates/views/error.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'NPUtils' not found in wp-content/plugins/nuapay-emandates/views/admin.php:2
- > PHP Notice
Undefined variable: message in wp-content/plugins/nuapay-emandates/views/error.php on line 1
- > PHP Notice
Undefined variable: url in wp-content/plugins/nuapay-emandates/views/index.redirect.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/nuapay-emandates/nuapay-plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'NPUtils' not found in wp-content/plugins/nuapay-emandates/views/index.overlay.php:9
- > PHP Fatal error
Uncaught Error: Class 'NuapayEmandatesShortcode' not found in wp-content/plugins/nuapay-emandates/shortcode/nuapay-emandate-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Class 'NuapayAispShortcode' not found in wp-content/plugins/nuapay-emandates/shortcode/nuapay-aisp-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Class 'NuapayPispShortcode' not found in wp-content/plugins/nuapay-emandates/shortcode/nuapay-pisp-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Class 'NPUtils' not found in wp-content/plugins/nuapay-emandates/views/index.redirect.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nuapay-emandates/shortcode/shortcode.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== nuapay-emandates ===
)
nuapay-emandates/nuapay-plugin.php 92% from 13 tests
"NUAPAY WordPress Plugin" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("nuapay-emandates.php" instead of "nuapay-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected910 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 130 | 51 | 621 |
JavaScript | 2 | 47 | 3 | 232 |
CSS | 1 | 0 | 0 | 57 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 9 | 29.03% |
▷ Public methods | 15 | 48.39% |
▷ Protected methods | 11 | 35.48% |
▷ Private methods | 5 | 16.13% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 4 | 25.00% |
▷ Class constants | 12 | 75.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/nuapay.png | 9.28KB | 5.86KB | ▼ 36.82% |
media/icon.png | 0.51KB | 0.57KB | 0.00% |