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.33MB] [CPU: ▼21.80ms] Passed 4 tests
Server-side resources used by NERD WP Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 54.06 ▲12.03 |
Dashboard /wp-admin | 3.70 ▲0.35 | 47.54 ▼16.76 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 45.64 ▼2.79 |
Add New Post /wp-admin/post-new.php | 3.51 ▼2.38 | 36.38 ▼70.66 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.36 ▲3.00 |
NERD /wp-admin/options-general.php?page=nerd-wp | 3.53 | 32.60 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_nerd_wp_widget |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for NERD WP Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.54 ▼1.04 | 6.02 ▲4.26 | 41.06 ▲2.76 |
Dashboard /wp-admin | 2,215 ▲27 | 4.82 ▼0.09 | 101.76 ▼6.81 | 38.67 ▼4.95 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.03 ▼0.01 | 36.89 ▲2.35 | 32.81 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,685 ▲141 | 22.58 ▲4.29 | 591.98 ▼16.68 | 63.20 ▲9.06 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.29 ▲0.10 | 97.73 ▼4.34 | 41.68 ▼4.31 |
NERD /wp-admin/options-general.php?page=nerd-wp | 835 | 2.06 | 22.85 | 28.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_nerd_wp_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nerd-wp/tests/bootstrap.php
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/nerd-wp/admin/partials/nerd-wp-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Psr7/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/nerd-wp/libraries/guzzle/Psr/Http/Message/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Psr7/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Promise/Promise.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Promise/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Exception/ClientException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Psr7/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/nerd-wp/libraries/guzzle/GuzzleHttp/Exception/TransferException.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
nerd-wp/nerd-wp.php 85% from 13 tests
This is the main PHP file of "NERD WP Plugin" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 225 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,060 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 1,856 | 5,721 | 9,467 |
JavaScript | 3 | 38 | 18 | 229 |
Bourne Shell | 1 | 21 | 11 | 120 |
Markdown | 2 | 35 | 0 | 114 |
YAML | 1 | 7 | 0 | 58 |
CSS | 2 | 5 | 2 | 46 |
XML | 2 | 4 | 2 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 74 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 74 | 100.00% |
▷ Final classes | 7 | 9.46% |
Methods | 704 | |
▷ Static methods | 63 | 8.95% |
▷ Public methods | 582 | 82.67% |
▷ Protected methods | 10 | 1.42% |
▷ Private methods | 112 | 15.91% |
Functions | 144 | |
▷ Named functions | 56 | 38.89% |
▷ Anonymous functions | 88 | 61.11% |
Constants | 52 | |
▷ Global constants | 1 | 1.92% |
▷ Class constants | 51 | 98.08% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected