78% webolead

Code Review | WebOLead

WordPress plugin WebOLead scored78%from 54 tests.

About plugin

  • Plugin page: webolead
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Jan 31, 2018
  • Number of updates: 25
  • Update frequency: every 23.8 days
  • Top authors: manooweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,104 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.62ms] Passed 4 tests

This is a short check of server-side resources used by WebOLead
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.46 ▼2.81
Dashboard /wp-admin3.34 ▲0.0346.13 ▼3.34
Posts /wp-admin/edit.php3.39 ▲0.0351.36 ▼0.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.86 ▼15.49
Media Library /wp-admin/upload.php3.26 ▲0.0336.35 ▲0.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WebOLead
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.24 ▼1.141.83 ▼0.3838.43 ▼12.41
Dashboard /wp-admin2,217 ▲264.86 ▼0.06106.83 ▲8.8436.81 ▼8.21
Posts /wp-admin/edit.php2,106 ▲142.06 ▲0.0144.92 ▲4.1735.97 ▼0.36
Add New Post /wp-admin/post-new.php1,526 ▼217.73 ▼0.75664.78 ▲58.1661.27 ▼2.07
Media Library /wp-admin/upload.php1,405 ▲174.21 ▼0.0596.41 ▼6.8140.64 ▼2.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/webolead/includes/wol-script/webolead-script.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webolead/includes/pages/settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webolead/webolead.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

webolead/webolead.php Passed 13 tests

"WebOLead" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
Easily install WebOLead code on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin154 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52116102
PO File110031
CSS10421

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin