Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/local-business-microdata-widget/localbusiness-microdata-widget.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; mywpcms_local_microdata_widget has a deprecated constructor
Server metrics [RAM: ▼1.54MB] [CPU: ▼50.11ms] Passed 4 tests
This is a short check of server-side resources used by Local Business Microdata Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼1.02 | 4.81 ▼38.51 |
Dashboard /wp-admin | 2.46 ▼0.84 | 8.82 ▼42.63 |
Posts /wp-admin/edit.php | 2.46 ▼0.89 | 7.08 ▼41.17 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.42 | 6.66 ▼78.14 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 6.77 ▼26.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_mywpcms_local_microdata_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Local Business Microdata Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.02 | 4.20 ▲2.45 | 37.82 ▼4.74 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.93 | 99.89 ▼17.31 | 41.31 ▼6.60 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.01 | 36.72 ▼0.79 | 33.65 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.37 ▲0.09 | 651.68 ▲13.41 | 58.37 ▲5.45 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▲0.01 | 105.14 ▼2.70 | 46.52 ▲3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/local-business-microdata-widget/localbusiness-microdata-widget.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; mywpcms_local_microdata_widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_mywpcms_local_microdata_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: widget, microdata, rich snippet, schema, local business...
local-business-microdata-widget/localbusiness-microdata-widget.php 92% from 13 tests
The main PHP script in "Local Business Microdata Widget" version 0.3.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("local-business-microdata-widget.php" instead of "localbusiness-microdata-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin617 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 86 | 22 | 617 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 76.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 19.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG images were not found in this plugin