Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼137.49ms] Passed 4 tests
An overview of server-side resources used by Orange Themes Custom Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.23 ▲0.39 | 39.64 ▲4.30 |
Dashboard /wp-admin | 3.53 ▲0.48 | 52.63 ▲3.41 |
Posts /wp-admin/edit.php | 3.58 ▲0.47 | 58.00 ▲8.95 |
Add New Post /wp-admin/post-new.php | 5.81 ▲0.38 | 101.28 ▼554.78 |
Media Library /wp-admin/upload.php | 3.39 ▲0.38 | 38.02 ▼2.88 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_ot_widgets_social |
widget_ot_widgets_ad_widget |
widget_ot_widgets_features |
widget_ot_widgets_about_author |
widget_ot_widgets_team |
widget_ot_widgets_latest_posts |
Browser metrics Passed 4 tests
A check of browser resources used by Orange Themes Custom Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,929 ▲333 | 17.64 ▲2.15 | 7.34 ▼4.59 | 47.13 ▼4.67 |
Dashboard /wp-admin | 3,193 ▲259 | 8.12 ▲2.02 | 178.87 ▲18.12 | 126.57 ▲10.41 |
Posts /wp-admin/edit.php | 2,988 ▲249 | 4.42 ▲1.74 | 89.83 ▲6.28 | 89.14 ▼5.48 |
Add New Post /wp-admin/post-new.php | 1,636 ▼47 | 20.68 ▲2.37 | 267.69 ▼170.97 | 123.31 ▼2.38 |
Media Library /wp-admin/upload.php | 1,834 ▲27 | 4.97 ▼0.06 | 122.84 ▼41.04 | 126.31 ▼5.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_ot_widgets_team
- widget_ot_widgets_ad_widget
- widget_ot_widgets_latest_posts
- widget_ot_widgets_social
- widget_ot_widgets_features
- widget_ot_widgets_about_author
Smoke tests 75% 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 50% 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
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orange-themes-custom-widgets/widgets/features.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orange-themes-custom-widgets/widgets/latest-posts.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orange-themes-custom-widgets/widgets/team.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orange-themes-custom-widgets/widgets/ad-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orange-themes-custom-widgets/widgets/social.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orange-themes-custom-widgets/widgets/about-author.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: one page, portfolio, latest posts, projects, widgets...
orange-themes-custom-widgets/ot_widgets.php 92% from 13 tests
The main file in "Orange Themes Custom Widgets" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("orange-themes-custom-widgets.php" instead of "ot_widgets.php")
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
Success! There were no dangerous files found in this plugin2,729 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 244 | 106 | 2,537 |
CSS | 1 | 25 | 9 | 148 |
JavaScript | 1 | 16 | 0 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 10.62 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected