74% opace-essential-seo-toolkit

Code Review | Opace Essential SEO Toolkit

WordPress plugin Opace Essential SEO Toolkit scored74%from 54 tests.

About plugin

  • Plugin page: opace-essential-s...
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2019
  • Latest release: Apr 6, 2023
  • Number of updates: 26
  • Update frequency: every 59.5 days
  • Top authors: opacewebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,833 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Opace Essential SEO Toolkit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.67 ▲3.67
Dashboard /wp-admin3.44 ▲0.0945.79 ▼14.36
Posts /wp-admin/edit.php3.56 ▲0.2047.80 ▲0.21
Add New Post /wp-admin/post-new.php5.58 ▼0.3169.95 ▼28.24
Media Library /wp-admin/upload.php3.36 ▲0.1334.26 ▼4.71
Opace Essential SEO Toolkit /wp-admin/options-general.php?page=essential-seo-toolkit3.3131.48

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 10 new options
New WordPress options
eseot_post_types
db_upgraded
widget_recent-comments
eseot_sources
eseot_version
widget_recent-posts
widget_theysaidso_widget
eseot_categories
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Opace Essential SEO Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.28 ▼0.231.75 ▼0.0445.75 ▲5.38
Dashboard /wp-admin2,199 ▲255.58 ▲0.0190.92 ▲3.7539.39 ▼3.80
Posts /wp-admin/edit.php2,110 ▲102.15 ▲0.1734.05 ▼0.4235.48 ▲0.11
Add New Post /wp-admin/post-new.php6,240 ▲4,70425.99 ▲7.66940.10 ▲289.2071.39 ▲5.11
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.0592.27 ▼23.5442.76 ▼3.94
Opace Essential SEO Toolkit /wp-admin/options-general.php?page=essential-seo-toolkit9342.0427.4931.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method opace_essential_seo_toolkit::uninstall() should not be called statically
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • eseot_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=essential-seo-toolkit
    • > Notice in wp-content/plugins/opace-essential-seo-toolkit/includes/class-settings-page.php+461
    Undefined index: default
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=essential-seo-toolkit
    • > Notice in wp-content/plugins/opace-essential-seo-toolkit/includes/class-settings-page.php+571
    Undefined variable: next
    • > GET request to /wp-admin/options-general.php?page=essential-seo-toolkit
    • > Notice in wp-content/plugins/opace-essential-seo-toolkit/includes/class-settings-page.php+598
    Undefined variable: markup

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
The official readme.txt is a good inspiration

opace-essential-seo-toolkit/opace-essential-seo-toolkit.php 92% from 13 tests

The main PHP file in "Opace Essential SEO Toolkit" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin987 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112274685
CSS2120124
JavaScript322192
PO File1222386

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity36.00
▷ Minimum class complexity26.00
▷ Maximum class complexity46.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods38.57%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin