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
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲1.79ms] Passed 4 tests
An overview of server-side resources used by NutsForPress Images and Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.83 ▼8.06 |
Dashboard /wp-admin | 3.48 ▲0.18 | 51.65 ▲4.16 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 53.55 ▲8.08 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 96.93 ▲6.15 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.57 ▲4.90 |
Images and Media /wp-admin/admin.php?page=nfpmgm-settings | 3.43 | 34.55 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 3.37 | 32.85 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for NutsForPress Images and Media
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.34 ▼1.30 | 3.76 ▲1.78 | 37.93 ▼1.73 |
Dashboard /wp-admin | 2,244 ▲56 | 5.88 ▼0.02 | 105.57 ▼0.85 | 38.38 ▼3.00 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.10 ▲0.10 | 42.85 ▲4.45 | 37.69 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 17.67 ▼5.45 | 702.59 ▲32.92 | 52.72 ▼10.07 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.32 ▲0.16 | 97.08 ▼2.73 | 41.82 ▼0.83 |
Images and Media /wp-admin/admin.php?page=nfpmgm-settings | 1,263 | 2.10 | 25.04 | 29.22 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 835 | 2.09 | 22.88 | 25.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- 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 shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 17× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/nutsforpress/includes/nfpmgm-plugin-deactivate.php
- > /wp-content/plugins/nutsforpress/admin/includes/nfpmgm-thumbnails-rebuild.php
- > /wp-content/plugins/nutsforpress/admin/includes/nfpmgm-size-actions.php
- > /wp-content/plugins/nutsforpress/admin/nfpmgm-settings-content.php
- > /wp-content/plugins/nutsforpress/root/nfproot-styles-and-scripts.php
- > /wp-content/plugins/nutsforpress/includes/nfpmgm-styles-and-scripts.php
- > /wp-content/plugins/nutsforpress/admin/includes/nfpmgm-size-actions-on-delete.php
- > /wp-content/plugins/nutsforpress/admin/includes/nfpmgm-quality-actions.php
- > /wp-content/plugins/nutsforpress/admin/nfpmgm-settings.php
- > /wp-content/plugins/nutsforpress/includes/nfpmgm-plugin-activate.php
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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Requires php: The plugin version is formatted incorrectly
nutsforpress/nuts-for-press-images-and-media.php 85% from 13 tests
The main PHP script in "NutsForPress Images and Media" version 1.7 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nutsforpress.php" instead of "nuts-for-press-images-and-media.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 217 characters long)
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 plugin1,765 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,044 | 250 | 1,427 |
JavaScript | 3 | 144 | 62 | 226 |
CSS | 1 | 29 | 1 | 112 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 38 | |
▷ Named functions | 33 | 86.84% |
▷ Anonymous functions | 5 | 13.16% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin