Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼14.91ms] Passed 4 tests
A check of server-side resources used by Nudge Publisher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.88 ▼8.69 |
Dashboard /wp-admin | 3.39 ▲0.05 | 46.85 ▼14.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.24 ▼6.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.25 ▼29.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.16 ▲2.85 |
Nudge Publisher /wp-admin/options-general.php?page=ndg-admin-codes | 3.28 | 34.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ndg_plublisher_codes |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
ndg_plublisher_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nudge Publisher
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.24 ▼0.53 | 1.69 ▼0.44 | 38.14 ▼6.37 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.01 | 81.94 ▼7.88 | 44.09 ▲3.57 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.06 | 33.57 ▼4.14 | 36.77 ▲6.33 |
Add New Post /wp-admin/post-new.php | 6,225 ▲4,699 | 18.95 ▼4.16 | 884.25 ▲279.57 | 58.02 ▲9.57 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.17 ▼0.10 | 103.37 ▲8.48 | 46.28 ▲5.54 |
Nudge Publisher /wp-admin/options-general.php?page=ndg-admin-codes | 860 | 2.04 | 26.22 | 27.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- ndg_plublisher_version
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
nudge-publisher/ndg-publisher.php 92% from 13 tests
The principal PHP file in "Nudge Publisher" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nudge-publisher.php" instead of "ndg-publisher.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin645 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 134 | 121 | 611 |
CSS | 1 | 6 | 0 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 7 | 19.44% |
▷ Public methods | 18 | 50.00% |
▷ Protected methods | 12 | 33.33% |
▷ Private methods | 6 | 16.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin