10% seo-consultant

Code Review | SEO Consultant

WordPress plugin SEO Consultant scored 10% from 54 tests.

About plugin

  • Plugin page: seo-consultant
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.3
  • WordPress version: 5.9.2
  • First release: Aug 6, 2015
  • Latest release: Aug 9, 2015
  • Number of updates: 19
  • Update frequency: every 0.3 days
  • Top authors: Konstantinos_Tsatsarounos (68.42%)alexitsios (36.84%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 14,567 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/seo-consultant/app/modules/FPDF.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼347.71ms] Passed 4 tests

A check of server-side resources used by SEO Consultant
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.61 ▼0.908.00 ▼51.63
Dashboard /wp-admin2.63 ▼0.785.44 ▼34.67
Posts /wp-admin/edit.php2.63 ▼1.0113.12 ▼50.70
Add New Post /wp-admin/post-new.php2.63 ▼4.346.27 ▼1,253.83
Media Library /wp-admin/upload.php2.63 ▼0.6610.15 ▼23.14
SEO Consultant /wp-admin/options-general.php?page=seocons_settings2.637.60

Server storage [IO: ▲1.11MB] [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: 66 new files
Database: 2 new tables, 1 new option
New tables
wp_seo_hostlog
wp_seo_hostindex
New WordPress options
seo_consultant_current_version

Browser metrics Passed 4 tests

A check of browser resources used by SEO Consultant
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /6,451 ▲2,69720.49 ▲4.896.06 ▲0.462.84 ▲0.17
Dashboard /wp-admin5,541 ▲2,6877.84 ▲1.70178.83 ▲47.58184.71 ▲28.63
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0162.94 ▼4.69143.48 ▼0.43
Add New Post /wp-admin/post-new.php1,697 ▼2020.68 ▼0.34417.36 ▼11.16161.52 ▲5.79
Media Library /wp-admin/upload.php1,707 ▲65.51 ▲0.06139.01 ▼4.14184.10 ▼1.51
SEO Consultant /wp-admin/options-general.php?page=seocons_settings1,0522.4154.80115.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/seo-consultant/app/modules/FPDF.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_seo_hostindex
    • wp_seo_hostlog
  • Zombie WordPress options were found after uninstall: 1 option
    • seo_consultant_current_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=seocons_settings
    • > Deprecated in wp-content/plugins/seo-consultant/app/modules/FPDF.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=seocons_settings
    • > Notice in wp-content/plugins/seo-consultant/app/modules/Logger.php+22
    Trying to access array offset on value of type bool

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-consultant/plugin.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: seo monitor, seo analysis, backlinks, seo

seo-consultant/plugin.php 85% from 13 tests

The principal PHP file in "SEO Consultant" v. 1.1.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-consultant.php" instead of "plugin.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected4,701 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP395355373,223
SVG100640
JavaScript1172342344
Sass3463286
CSS244190
PO File11118

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.75
▷ Minimum class complexity1.00
▷ Maximum class complexity310.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods201
▷ Static methods209.95%
▷ Public methods15577.11%
▷ Protected methods00.00%
▷ Private methods4622.89%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
No PNG files were detected