Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.99ms] Passed 4 tests
A check of server-side resources used by Nano Plugin Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 52.21 ▲8.19 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.70 ▼1.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.44 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.63 ▼19.08 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.48 ▼1.06 |
Add / Edit /wp-admin/admin.php?page=nano-plugin-editor | 3.29 | 37.95 |
Nano Plugins /wp-admin/admin.php?page=nano-plugins | 3.29 | 39.58 |
Import /wp-admin/admin.php?page=nano-plugin-importer | 3.29 | 33.97 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
npm_activated |
Browser metrics Passed 4 tests
A check of browser resources used by Nano Plugin Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.34 ▼0.19 | 1.74 ▼0.78 | 43.71 ▲0.79 |
Dashboard /wp-admin | 2,224 ▲44 | 5.58 ▲0.01 | 84.95 ▼14.22 | 80.82 ▲39.61 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.98 ▲0.01 | 37.78 ▼0.79 | 33.81 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.00 ▼0.74 | 798.14 ▲147.27 | 60.75 ▲10.95 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.14 ▼0.03 | 101.92 ▼11.49 | 68.16 ▲26.28 |
Add / Edit /wp-admin/admin.php?page=nano-plugin-editor | 1,153 | 2.02 | 29.03 | 33.65 |
Nano Plugins /wp-admin/admin.php?page=nano-plugins | 888 | 2.17 | 25.89 | 26.87 |
Import /wp-admin/admin.php?page=nano-plugin-importer | 800 | 2.03 | 24.75 | 30.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- npm_activated
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- 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 | 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nano-plugin-manager/npm.php:53
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== nano-plugin-manager ===
) - Screenshots: Add images for these screenshots: #1 (Nano plugin listing), #2 (The edit screen)
nano-plugin-manager/npm.php 92% from 13 tests
"Nano Plugin Manager" version 0.9.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("nano-plugin-manager.php" instead of "npm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,313 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 201 | 188 | 3,527 |
PHP | 16 | 121 | 91 | 298 |
HTML | 5 | 32 | 0 | 293 |
CSS | 2 | 17 | 4 | 114 |
PO File | 1 | 35 | 50 | 78 |
XML | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 28.01KB | 9.98KB | ▼ 64.37% |
includes/npm16.png | 0.75KB | 0.59KB | ▼ 20.89% |
screenshot-1.png | 32.88KB | 13.30KB | ▼ 59.54% |
includes/npm32.png | 3.33KB | 2.21KB | ▼ 33.52% |