78% seo-wbm

Code Review | seo_wbm

WordPress plugin seo_wbm scored78%from 54 tests.

About plugin

  • Plugin page: seo-wbm
  • Plugin version: 0.45
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Jun 16, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: WebsitesbyMark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼4.69ms] Passed 4 tests

An overview of server-side resources used by seo_wbm
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.18 ▼6.01
Dashboard /wp-admin3.31 ▼0.0450.13 ▼15.25
Posts /wp-admin/edit.php3.36 ▲0.0046.56 ▼2.44
Add New Post /wp-admin/post-new.php5.45 ▼0.44100.90 ▲6.69
Media Library /wp-admin/upload.php3.23 ▲0.0039.56 ▲4.93

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

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

Browser metrics Passed 4 tests

seo_wbm: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.421.87 ▲0.1442.98 ▲0.77
Dashboard /wp-admin2,195 ▲215.55 ▼0.0185.39 ▼14.1639.18 ▼5.80
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0134.14 ▼3.0433.25 ▼5.86
Add New Post /wp-admin/post-new.php6,490 ▲4,96420.68 ▼2.92890.55 ▲225.4273.49 ▲10.39
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0694.41 ▼14.7844.69 ▲0.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/seo-wbm/trunk/report-sections/path.php
    • > /wp-content/plugins/seo-wbm/trunk/report-sections/h.php
    • > /wp-content/plugins/seo-wbm/report-sections/path.php
    • > /wp-content/plugins/seo-wbm/report-sections/body.php
    • > /wp-content/plugins/seo-wbm/report-sections/title-tag.php
    • > /wp-content/plugins/seo-wbm/trunk/report-sections/body.php
    • > /wp-content/plugins/seo-wbm/trunk/report-sections/title-tag.php
    • > /wp-content/plugins/seo-wbm/report-sections/h.php
  • 144× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: c2_html in wp-content/plugins/seo-wbm/report-sections/body.php on line 24
    • > PHP Notice
      Undefined variable: sp in wp-content/plugins/seo-wbm/trunk/report-sections/body.php on line 28
    • > PHP Notice
      Undefined variable: sp in wp-content/plugins/seo-wbm/trunk/report-sections/h.php on line 13
    • > PHP Notice
      Undefined variable: c2_sp_am in wp-content/plugins/seo-wbm/trunk/report-sections/title-tag.php on line 9
    • > PHP Warning
      substr_count(): Empty substring in wp-content/plugins/seo-wbm/trunk/report-sections/body.php on line 21
    • > PHP Notice
      Undefined variable: c1_html in wp-content/plugins/seo-wbm/report-sections/body.php on line 17
    • > PHP Warning
      substr_count(): Empty substring in wp-content/plugins/seo-wbm/trunk/report-sections/h.php on line 19
    • > PHP Notice
      Undefined variable: c3_html in wp-content/plugins/seo-wbm/trunk/report-sections/body.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-wbm/meta/save-meta.php:32
    • > PHP Notice
      Undefined variable: cp_sp_am in wp-content/plugins/seo-wbm/report-sections/title-tag.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === seo-wbm === )
The official readme.txt might help

seo-wbm/seo_wbm.php 85% from 13 tests

The primary PHP file in "seo_wbm" version 0.45 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-wbm.php" instead of "seo_wbm.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin269 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP105582269

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin