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.13MB] [CPU: ▲0.65ms] Passed 4 tests
Analyzing server-side resources used by NutsForPress Sort Any Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.75 ▲2.97 |
Dashboard /wp-admin | 3.43 ▲0.13 | 50.58 ▼3.86 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.74 ▲3.41 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 99.27 ▲1.17 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.56 ▲2.32 |
Sort Any Posts /wp-admin/admin.php?page=nfpsap-settings | 3.34 | 34.89 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 3.32 | 33.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for NutsForPress Sort Any Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲126 | 13.31 ▼1.11 | 4.77 ▲3.09 | 43.76 ▲3.74 |
Dashboard /wp-admin | 2,245 ▲57 | 4.95 ▲0.04 | 108.04 ▲2.83 | 41.82 ▲0.23 |
Posts /wp-admin/edit.php | 2,125 ▲57 | 2.09 ▲0.06 | 40.70 ▲4.13 | 35.98 ▲3.63 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 17.64 ▼0.60 | 587.50 ▼46.98 | 49.91 ▼2.35 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.23 ▼0.06 | 93.37 ▼16.19 | 42.85 ▼4.28 |
Sort Any Posts /wp-admin/admin.php?page=nfpsap-settings | 839 | 2.10 | 25.37 | 27.34 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 809 | 2.09 | 24.48 | 25.83 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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 everything seems fine, this is not 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
Please fix the following items
- 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/nutsforpress-sort-any-posts/includes/nfpsap-plugin-uninstall.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/root/nfproot-styles-and-scripts.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/admin/includes/nfpsap-admin-sort.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/admin/nfpsap-settings-content.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/root/nfproot-settings-structure.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/public/includes/nfpsap-public-sort.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/root/nfproot-saved-settings.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/admin/nfpsap-settings.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/includes/nfpsap-plugin-activate.php
- > /wp-content/plugins/nutsforpress-sort-any-posts/root/nfproot-save-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires php: Invalid version format
nutsforpress-sort-any-posts/nuts-for-press-sort-any-posts.php 85% from 13 tests
The principal PHP file in "NutsForPress Sort Any Post" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nutsforpress-sort-any-posts.php" instead of "nuts-for-press-sort-any-posts.php")
- Description: The description should be shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,307 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 795 | 186 | 1,059 |
JavaScript | 2 | 97 | 50 | 136 |
CSS | 1 | 29 | 1 | 112 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
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 | 31 | |
▷ Named functions | 29 | 93.55% |
▷ Anonymous functions | 2 | 6.45% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin