10% local-info-powered-by-everyblock

Code Review | Local Info Powered By EveryBlock

WordPress plugin Local Info Powered By EveryBlock scored10%from 54 tests.

About plugin

  • Plugin page: local-info-powere...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2014
  • Latest release: Sep 3, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: Everyblock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.20 ▼34.49
Dashboard /wp-admin2.11 ▼1.195.59 ▼43.61
Posts /wp-admin/edit.php2.12 ▼1.245.21 ▼43.91
Add New Post /wp-admin/post-new.php2.11 ▼3.775.47 ▼84.61
Media Library /wp-admin/upload.php2.11 ▼1.115.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.72 ▼0.041.94 ▲0.3145.42 ▲4.68
Dashboard /wp-admin2,206 ▲215.87 ▲0.90101.73 ▼18.5536.82 ▼7.35
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0033.95 ▼1.0833.95 ▲2.01
Add New Post /wp-admin/post-new.php1,533 ▲1123.25 ▲0.05658.19 ▲73.3156.22 ▼4.61
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0694.69 ▼5.8140.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

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 === )
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP49323472
CSS1180195

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 code0.51
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1777.27%
▷ Protected methods29.09%
▷ Private methods313.64%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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