78% seo-debug-bar

Code Review | Seo Debug Bar

WordPress plugin Seo Debug Bar scored78%from 54 tests.

About plugin

  • Plugin page: seo-debug-bar
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 1, 2017
  • Latest release: Dec 22, 2017
  • Number of updates: 8
  • Update frequency: every 14.1 days
  • Top authors: vinvin27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.49ms] Passed 4 tests

An overview of server-side resources used by Seo Debug Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.38 ▼5.43
Dashboard /wp-admin3.31 ▲0.0149.12 ▼4.68
Posts /wp-admin/edit.php3.36 ▲0.0151.99 ▲0.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.65 ▲3.97
Media Library /wp-admin/upload.php3.23 ▲0.0136.75 ▼0.29
Seo Debug Bar /wp-admin/options-general.php?page=id-vg-super-seo3.2026.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Seo Debug Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲12113.49 ▼0.8911.19 ▲9.0340.79 ▼5.12
Dashboard /wp-admin2,204 ▲245.71 ▲0.1597.83 ▼0.3543.23 ▼1.25
Posts /wp-admin/edit.php2,112 ▲122.10 ▲0.1242.60 ▲5.6934.46 ▼6.12
Add New Post /wp-admin/post-new.php1,533 ▲123.69 ▲0.49670.71 ▼12.9049.91 ▼9.24
Media Library /wp-admin/upload.php1,409 ▲94.28 ▲0.01119.96 ▲14.4346.03 ▼1.91
Seo Debug Bar /wp-admin/options-general.php?page=id-vg-super-seo8371.7129.5528.56

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-debug-bar/seo-debug-bar.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=id-vg-super-seo
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: title is not defined" "ReferenceError: title is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/seo-debug-bar/js/seodebugbar.js?ver=6.3.1:67:11)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=id-vg-super-seo
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: title is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in seo-debug-bar/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

seo-debug-bar/seo-debug-bar.php 92% from 13 tests

"Seo Debug Bar" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin730 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19365537
PHP13419113
CSS11080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin