Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/desire-page-widget/DesirePageWidget.php+29
Function create_function() is deprecated
Server metrics [RAM: ▼1.95MB] [CPU: ▼54.15ms] Passed 4 tests
A check of server-side resources used by Desire Page Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.69 ▼32.27 |
Dashboard /wp-admin | 2.07 ▼1.27 | 5.95 ▼55.98 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.50 ▼40.60 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.92 ▼87.76 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.69 ▼24.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_desire_page_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Desire Page Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.72 ▲0.46 | 1.70 ▲0.12 | 39.84 ▼10.95 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.02 | 84.76 ▼1.27 | 37.93 ▼6.18 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.06 | 35.11 ▼5.69 | 30.99 ▼6.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.13 ▼0.05 | 657.62 ▼22.29 | 53.61 ▲1.82 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.17 ▼0.05 | 97.07 ▲1.34 | 43.30 ▼0.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/desire-page-widget/DesirePageWidget.php+29
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_desire_page_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/desire-page-widget/classes/DesireWidget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function load_theme_textdomain() in wp-content/plugins/desire-page-widget/DesirePageWidget.php:25
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: one page, single page, widget, page, layout
desire-page-widget/DesirePageWidget.php 92% from 13 tests
The main file in "Desire Page Widget" v. 1.0.1.2 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("desire-page-widget.php" instead of "DesirePageWidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin187 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 22 | 91 | 117 |
PO File | 2 | 14 | 14 | 70 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected