90% wpspeed-localbusiness-schema

Code Review | Local Business Schema Lite

WordPress plugin Local Business Schema Lite scored90%from 54 tests.

About plugin

  • Plugin page: wpspeed-localbusi...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Oct 12, 2020
  • Number of updates: 44
  • Update frequency: every 25.0 days
  • Top authors: bestseogr (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /13,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.14ms] Passed 4 tests

An overview of server-side resources used by Local Business Schema Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.64 ▼6.01
Dashboard /wp-admin3.35 ▲0.0448.62 ▼1.55
Posts /wp-admin/edit.php3.40 ▲0.0450.95 ▼0.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.46 ▲0.32
Media Library /wp-admin/upload.php3.27 ▲0.0437.84 ▼0.76

Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Local Business Schema Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.69 ▼0.041.72 ▼0.3344.48 ▼0.38
Dashboard /wp-admin2,210 ▲305.56 ▼0.1183.23 ▼9.1272.85 ▲23.64
Posts /wp-admin/edit.php2,118 ▲152.00 ▲0.0039.65 ▼13.8743.12 ▼3.25
Add New Post /wp-admin/post-new.php1,562 ▲3424.86 ▲1.96715.39 ▼11.4062.73 ▲8.13
Media Library /wp-admin/upload.php1,412 ▲94.22 ▲0.0798.84 ▼13.7568.99 ▲17.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
9 plugin tags: json-ld, local business, local optimization, seo optimization, local seo...

wpspeed-localbusiness-schema/wpspeed-localbusiness-schema.php Passed 13 tests

This is the main PHP file of "Local Business Schema Lite" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
Easily Add JSON-LD LocalBusiness Schema on your Website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin210 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13216171
CSS19639

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wps-localbusiness.png15.96KB1.25KB▼ 92.15%
images/icon-help.png0.68KB0.70KB0.00%