Benchmarks
Plugin footprint 30% 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: ▼1.20MB] [CPU: ▼39.22ms] Passed 4 tests
Server-side resources used by ntp-header-images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.69 | 16.17 ▼22.16 |
Dashboard /wp-admin | 2.81 ▼0.49 | 16.37 ▼30.20 |
Posts /wp-admin/edit.php | 2.81 ▼0.54 | 16.29 ▼31.43 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.07 | 16.16 ▼73.09 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 16.32 ▼17.70 |
ntpHeaderImages settings /wp-admin/options-general.php?page=ntp-header-images | 2.81 | 15.64 |
Server storage [IO: ▲0.13MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ntp_header_images |
New WordPress options |
---|
can_compress_scripts |
ntpHeaderImagesWidth |
widget_recent-posts |
theysaidso_admin_options |
ntpHeaderImagesHeight |
widget_recent-comments |
widget_theysaidso_widget |
ntpHeaderImagesCount |
db_upgraded |
Browser metrics Passed 4 tests
ntp-header-images: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.33 ▼0.04 | 1.82 ▼0.27 | 48.99 ▼0.14 |
Dashboard /wp-admin | 2,199 ▲29 | 5.67 ▲0.02 | 85.60 ▼14.78 | 41.83 ▲3.79 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.98 ▼0.05 | 34.76 ▼0.58 | 33.90 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 18.36 ▼4.67 | 638.52 ▲19.40 | 74.95 ▲21.98 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.25 ▲0.08 | 95.89 ▲1.73 | 40.48 ▼2.09 |
ntpHeaderImages settings /wp-admin/options-general.php?page=ntp-header-images | 850 | 2.01 | 28.62 | 28.58 |
Uninstaller [IO: ▲0.13MB] [DB: ▲0.31MB] 0% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- Uninstaller has failed for this plugin, leaving 6 files (0.13MB) in the plugin directory
- (new file) translate/ntp-header-images.po
- (new file) translate/ntp-header-images-ru_RU.mo
- (new file) screenshot-1.jpg
- (new file) readme.txt
- (new file) style.css
- (new file) ntp-header-images.php
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ntp_header_images
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ntp-header-images
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ntp-header-images
- > Notice in wp-content/plugins/header-images-rotator/ntp-header-images.php+154
Undefined index: action
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-images-rotator/ntp-header-images.php:35
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #1 (How it looks like) image missing
header-images-rotator/ntp-header-images.php 92% from 13 tests
"ntp-header-images" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("header-images-rotator.php" instead of "ntp-header-images.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin331 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 61 | 263 |
PO File | 1 | 17 | 22 | 46 |
CSS | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 are no PNG files in this plugin