Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.71ms] Passed 4 tests
A check of server-side resources used by NitroPack – Cache & Speed Optimization for Core Web Vitals, Defer CSS & JavaScript, Lazy load Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 41.41 ▼8.83 |
Dashboard /wp-admin | 3.51 ▲0.21 | 55.25 ▲3.59 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 55.44 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 89.52 ▼8.05 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.19 ▲0.06 |
NitroPack /wp-admin/options-general.php?page=nitropack | 3.37 | 37.62 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- You have illegally modified 3 files (8.35KB) outside of "wp-content/plugins/nitropack/" and "wp-content/uploads/"
- (new file) wp-content/cache/747e685-nitropack/.htaccess
- (modified) wp-config.php
- (new file) wp-content/advanced-cache.php
Filesystem: 218 new files
Database: no new tables, 8 new options
New WordPress options |
---|
nitropack-safeModeStatus |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
nitropack-distribution |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for NitroPack – Cache & Speed Optimization for Core Web Vitals, Defer CSS & JavaScript, Lazy load Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲195 | 13.88 ▼0.86 | 8.37 ▲6.42 | 37.59 ▼13.83 |
Dashboard /wp-admin | 2,229 ▲49 | 5.55 ▼0.09 | 98.17 ▼2.37 | 44.73 ▲2.99 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.02 ▼0.06 | 41.30 ▼0.48 | 37.64 ▲4.57 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,729 | 26.18 ▲5.18 | 815.44 ▲185.31 | 66.04 ▲10.62 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.21 ▼0.01 | 104.04 ▲4.75 | 45.28 ▲2.19 |
NitroPack /wp-admin/options-general.php?page=nitropack | 1,000 | 1.94 | 37.73 | 85.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nitropack/advanced-cache.php
- > /wp-content/plugins/nitropack/diagnostics.php
- > /wp-content/plugins/nitropack/main.php
- > /wp-content/plugins/nitropack/functions.php
- > /wp-content/plugins/nitropack/constants.php
- > /wp-content/plugins/nitropack/wp-cli.php
- > /wp-content/plugins/nitropack/helpers.php
- 94× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\SDK\\Api\\Base' not found in wp-content/plugins/nitropack/nitropack-sdk/NitroPack/SDK/Api/RequestMaker.php:4
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\Integration\\Hosting\\Hosting' not found in wp-content/plugins/nitropack/classes/Integration/Hosting/WPmudev.php:13
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\SDK\\FileHandle' not found in wp-content/plugins/nitropack/nitropack-sdk/NitroPack/SDK/StorageDriver/RedisFileHandle.php:6
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\SDK\\Api\\SignedBase' not found in wp-content/plugins/nitropack/nitropack-sdk/NitroPack/SDK/Api/VariationCookie.php:4
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\HttpClient\\Exceptions\\HttpClientException' not found in wp-content/plugins/nitropack/nitropack-sdk/vendor/nitropack/httpclient/src/Exceptions/URLUnsupportedProtocolException.php:5
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\Integration\\Hosting\\Hosting' not found in wp-content/plugins/nitropack/classes/Integration/Hosting/RocketNet.php:5
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\SDK\\Api\\SignedBase' not found in wp-content/plugins/nitropack/nitropack-sdk/NitroPack/SDK/Api/Url.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nitropack/nitropack-sdk/vendor/nitropack/httpclient/tests/ResponseHandlingTest.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nitropack/classes/Integration/Plugin/AdvancedMathCaptcha.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'NitroPack\\SDK\\FileHandle' not found in wp-content/plugins/nitropack/nitropack-sdk/NitroPack/SDK/StorageDriver/DiskFileHandle.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
nitropack/main.php 85% from 13 tests
The primary PHP file in "NitroPack – Cache & Speed Optimization for Core Web Vitals, Defer CSS & JavaScript, Lazy load Images" version 1.10.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("nitropack.php" instead of "main.php")
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin20,872 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 177 | 3,160 | 1,442 | 16,217 |
CSS | 6 | 152 | 33 | 3,054 |
SVG | 1 | 0 | 0 | 655 |
PO File | 1 | 219 | 253 | 453 |
JavaScript | 11 | 67 | 16 | 396 |
JSON | 2 | 0 | 0 | 97 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 13.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 333.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 150 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 150 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 885 | |
▷ Static methods | 169 | 19.10% |
▷ Public methods | 792 | 89.49% |
▷ Protected methods | 14 | 1.58% |
▷ Private methods | 79 | 8.93% |
Functions | 306 | |
▷ Named functions | 247 | 80.72% |
▷ Anonymous functions | 59 | 19.28% |
Constants | 149 | |
▷ Global constants | 55 | 36.91% |
▷ Class constants | 94 | 63.09% |
▷ Public constants | 94 | 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
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/images/slider-thumb-medium.png | 0.65KB | 0.38KB | ▼ 41.33% |
view/images/slider-thumb-strong.png | 0.72KB | 0.42KB | ▼ 42.01% |
view/images/slider-thumb-manual.png | 0.59KB | 0.34KB | ▼ 42.55% |
view/images/slider-thumb-turbo.png | 0.62KB | 0.35KB | ▼ 43.82% |
view/images/slider-thumb-standard.png | 0.68KB | 0.37KB | ▼ 45.91% |