Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/nsst-amz/nsstlink.php+260
Undefined variable: nsst_db_version
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.35ms] Passed 4 tests
An overview of server-side resources used by NSST AMZ
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.55 ▼5.15 |
Dashboard /wp-admin | 3.37 ▲0.03 | 41.94 ▼16.80 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.63 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.30 ▼12.28 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.09 ▲1.35 |
NSST AMAZON /wp-admin/options-general.php?page=my-nsst-setting-admin | 3.26 | 31.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_nsstlink |
wp_nsstlink_log |
New WordPress options |
---|
nsst_db_version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NSST AMZ
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.54 ▼0.84 | 1.63 ▼0.26 | 42.76 ▼1.56 |
Dashboard /wp-admin | 2,210 ▲21 | 5.83 ▼0.25 | 96.35 ▼25.06 | 36.37 ▼8.41 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.04 | 34.37 ▼2.76 | 35.18 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.02 ▲5.53 | 662.89 ▼37.70 | 54.64 ▼11.18 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.06 | 94.45 ▼2.28 | 42.25 ▼3.59 |
NSST AMAZON /wp-admin/options-general.php?page=my-nsst-setting-admin | 786 | 2.03 | 24.88 | 35.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_nsstlink
- wp_nsstlink_log
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- nsst_db_version
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nsst-amz/setting.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nsst-amz/setting.php:153
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in nsst-amz/assets to your readme.txt
nsst-amz/nsstlink.php 92% from 13 tests
This is the main PHP file of "NSST AMZ" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nsst-amz.php" instead of "nsstlink.php")
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 detected348 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 90 | 92 | 348 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin