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
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼139.03ms] Passed 4 tests
Server-side resources used by NavThemes Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.37 | 39.93 ▲21.66 |
Dashboard /wp-admin | 3.39 ▲0.33 | 55.02 ▲9.47 |
Posts /wp-admin/edit.php | 3.45 ▲0.33 | 52.48 ▲3.62 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.23 | 96.31 ▼571.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.25 | 36.88 ▲2.09 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_about_widgets |
widget_navthemes_partners_widgets |
widget_navthemes_plan_widget |
widget_navthemes_testimonials_widgets |
widget_navthemes_service_widgets |
widget_navthemes_heading_widgets |
widget_navthemes_callaction_widgets |
widget_navthemes_team_widgets |
Browser metrics Passed 4 tests
NavThemes Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,901 ▲305 | 17.26 ▲1.97 | 8.46 ▼0.06 | 52.03 ▲3.86 |
Dashboard /wp-admin | 3,166 ▲232 | 7.82 ▲1.71 | 173.39 ▲13.55 | 122.27 ▼1.34 |
Posts /wp-admin/edit.php | 2,964 ▲225 | 4.29 ▲1.60 | 83.31 ▲13.05 | 105.02 ▲10.84 |
Add New Post /wp-admin/post-new.php | 1,596 ▼87 | 18.53 ▼0.25 | 378.50 ▼7.76 | 140.45 ▲28.25 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 4.80 ▼0.23 | 125.64 ▼25.49 | 135.63 ▲7.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_navthemes_service_widgets
- widget_navthemes_plan_widget
- widget_navthemes_heading_widgets
- widget_navthemes_team_widgets
- widget_about_widgets
- widget_navthemes_partners_widgets
- widget_navthemes_testimonials_widgets
- widget_navthemes_callaction_widgets
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/navthemes-widgets/widgets/callaction-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/heading-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/team-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/service-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/plan-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/about-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/testimonials-view.php
- > /wp-content/plugins/navthemes-widgets/widgets/partners-view.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/team-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/navthemes-widgets/navthemes-widgets.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/partners-widget.php:6
- > PHP Notice
Undefined variable: style in wp-content/plugins/navthemes-widgets/widgets/about-view.php on line 70
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/heading-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/about-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/testimonials-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/plan-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/callaction-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/navthemes-widgets/widgets/services-widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Widget Area) image required
navthemes-widgets/navthemes-widgets.php Passed 13 tests
The entry point to "NavThemes Widgets" version 1.3 is a PHP file that has certain tags in its header comment area
37 characters long description:
This Plugin add About Custom widgets.
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
No dangerous file extensions were detected1,297 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 395 | 331 | 997 |
CSS | 1 | 75 | 19 | 274 |
JavaScript | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.75 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 6.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 196.59KB | 54.91KB | ▼ 72.07% |