Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/local-info-powered-by-everyblock/plugin.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; EveryblockLocalInfoWidget has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼51.66ms] Passed 4 tests
Server-side resources used by Local Info Powered By EveryBlock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.20 ▼34.49 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.59 ▼43.61 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.21 ▼43.91 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.47 ▼84.61 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 5.18 ▼29.63 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_everyblocklocalinfowidget |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Local Info Powered By EveryBlock
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.72 ▼0.04 | 1.94 ▲0.31 | 45.42 ▲4.68 |
Dashboard /wp-admin | 2,206 ▲21 | 5.87 ▲0.90 | 101.73 ▼18.55 | 36.82 ▼7.35 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 33.95 ▼1.08 | 33.95 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.25 ▲0.05 | 658.19 ▲73.31 | 56.22 ▼4.61 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▲0.06 | 94.69 ▼5.81 | 40.00 ▼1.45 |
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 cannot be uninstalled
- > Deprecated in wp-content/plugins/local-info-powered-by-everyblock/plugin.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; EveryblockLocalInfoWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_everyblocklocalinfowidget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/local-info-powered-by-everyblock/widget.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: schema in wp-content/plugins/local-info-powered-by-everyblock/widget.php on line 156
- > PHP Notice
Undefined variable: schema in wp-content/plugins/local-info-powered-by-everyblock/widget.php on line 71
- > PHP Notice
Undefined index: metro in wp-content/plugins/local-info-powered-by-everyblock/widget.php on line 203
- > PHP Notice
Undefined index: width in wp-content/plugins/local-info-powered-by-everyblock/widget.php on line 203
- > PHP Notice
Undefined index: schema in wp-content/plugins/local-info-powered-by-everyblock/widget.php on line 203
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/local-info-powered-by-everyblock/plugin.php:31
- > PHP Notice
Undefined index: height in wp-content/plugins/local-info-powered-by-everyblock/widget.php on line 203
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== local-info-powered-by-everyblock ===
)
local-info-powered-by-everyblock/plugin.php 92% from 13 tests
The principal PHP file in "Local Info Powered By EveryBlock" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("local-info-powered-by-everyblock.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected667 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 23 | 472 |
CSS | 1 | 18 | 0 | 195 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 2 | 9.09% |
▷ Private methods | 3 | 13.64% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin