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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.52ms] Passed 4 tests
Server-side resources used by NutsForPress Restricted Contents
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 44.46 ▼2.04 |
Dashboard /wp-admin | 3.50 ▲0.19 | 58.84 ▲0.73 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 54.93 ▲4.80 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.21 | 91.28 ▼17.55 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 43.58 ▲7.19 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 3.40 | 38.10 |
Restricted Contents /wp-admin/admin.php?page=nfprct-settings | 3.47 | 44.47 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
NutsForPress Restricted Contents: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.67 ▲0.02 | 1.72 ▲0.06 | 43.40 ▲5.11 |
Dashboard /wp-admin | 2,234 ▲60 | 5.70 ▲0.05 | 90.27 ▼1.09 | 40.20 ▼3.79 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.06 ▲0.03 | 37.14 ▼2.05 | 34.76 ▼1.56 |
Add New Post /wp-admin/post-new.php | 6,303 ▲4,777 | 25.96 ▲8.40 | 891.80 ▲240.61 | 57.47 ▲3.74 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.27 ▲0.02 | 99.42 ▼2.49 | 42.95 ▲0.90 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 839 | 2.08 | 22.74 | 27.30 |
Restricted Contents /wp-admin/admin.php?page=nfprct-settings | 932 | 2.06 | 26.93 | 30.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 17× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/nutsforpress-restricted-contents/admin/nfprct-settings.php
- > /wp-content/plugins/nutsforpress-restricted-contents/admin/includes/nfprct-restricted-contents-fields.php
- > /wp-content/plugins/nutsforpress-restricted-contents/admin/includes/nfprct-filter-rewrite-rules.php
- > /wp-content/plugins/nutsforpress-restricted-contents/root/nfproot-saved-settings.php
- > /wp-content/plugins/nutsforpress-restricted-contents/root/nfproot-settings.php
- > /wp-content/plugins/nutsforpress-restricted-contents/root/nfproot-save-settings.php
- > /wp-content/plugins/nutsforpress-restricted-contents/nuts-for-press-restricted-contents.php
- > /wp-content/plugins/nutsforpress-restricted-contents/admin/includes/nfprct-add-lock-to-post-title.php
- > /wp-content/plugins/nutsforpress-restricted-contents/admin/includes/nfprct-admin-common-functions.php
- > /wp-content/plugins/nutsforpress-restricted-contents/root/nfproot-styles-and-scripts.php
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Requires php: Invalid version format
nutsforpress-restricted-contents/nuts-for-press-restricted-contents.php 92% from 13 tests
"NutsForPress Restricted Contents" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("nutsforpress-restricted-contents.php" instead of "nuts-for-press-restricted-contents.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
Success! There were no dangerous files found in this plugin1,931 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,291 | 269 | 1,683 |
JavaScript | 2 | 97 | 50 | 136 |
CSS | 1 | 29 | 1 | 112 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 39 | |
▷ Named functions | 38 | 97.44% |
▷ Anonymous functions | 1 | 2.56% |
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
PNG images were not found in this plugin