78% seldos-seo

Code Review | Seldos SEO

WordPress plugin Seldos SEO scored 78% from 54 tests.

About plugin

  • Plugin page: seldos-seo
  • Plugin version: 1.3.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.8.1
  • First release: Apr 22, 2018
  • Latest release: May 5, 2018
  • Number of updates: 27
  • Update frequency: every 0.5 days
  • Top authors: hasanyuksektepe (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 530 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▼138.91ms] Passed 4 tests

Server-side resources used by Seldos SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.17 ▲0.4547.48 ▲28.65
Dashboard /wp-admin3.33 ▲0.2854.50 ▲7.88
Posts /wp-admin/edit.php3.37 ▲0.2651.56 ▲9.72
Add New Post /wp-admin/post-new.php5.87 ▲0.4492.56 ▼571.63
Media Library /wp-admin/upload.php3.23 ▲0.2334.78 ▼1.62
SEO Error Page /wp-admin/admin.php?page=seldos-seo-error-page3.1632.92
Settings /wp-admin/admin.php?page=seldos-seo-settings3.2133.06

Server storage [IO: ▲0.15MB] [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: 39 new files
Database: 1 new table, no new options
New tables
seldos_seo_404

Browser metrics Passed 4 tests

Seldos SEO: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲26416.68 ▲1.0412.13 ▲1.4549.64 ▲5.12
Dashboard /wp-admin2,991 ▲606.20 ▲0.20144.36 ▼9.77126.26 ▲25.16
Posts /wp-admin/edit.php2,799 ▲602.73 ▲0.0265.69 ▼3.8785.76 ▲2.45
Add New Post /wp-admin/post-new.php1,736 ▲5321.89 ▲3.11308.50 ▼134.04140.22 ▲28.57
Media Library /wp-admin/upload.php1,780 ▼275.06 ▲0.02139.05 ▼16.35127.92 ▲12.48
SEO Error Page /wp-admin/admin.php?page=seldos-seo-error-page1,2382.1055.1865.28
Settings /wp-admin/admin.php?page=seldos-seo-settings1,6402.1155.4980.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • seldos_seo_404

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/seldos-seo/public/partials/seldos-seo-public-display.php
    • > /wp-content/plugins/seldos-seo/admin/partials/seldos-seo-apperance.php
    • > /wp-content/plugins/seldos-seo/admin/partials/seldos-seo-admin-display.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/seldos-seo/admin/partials/seldos-seo-post-type-template.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seldos-seo/admin/partials/seldos-seo-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/seldos-seo/admin/partials/seldos-seo-error-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/seldos-seo/admin/partials/seldos-seo-elements.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/seldos-seo/includes/class-seldos-seo-table-generator.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/seldos-seo/includes/class-seldos-seo-table-generator.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seldos-seo/includes/class-seldos-seo-table-generator.php on line 4

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 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

seldos-seo/seldos-seo.php Passed 13 tests

"Seldos SEO" version 1.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
There were no executable files found in this plugin1,684 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP19362857970
PO File4144188356
CSS2925211
JavaScript23876147

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods69
▷ Static methods22.90%
▷ Public methods5884.06%
▷ Protected methods00.00%
▷ Private methods1115.94%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png18.27KB0.91KB▼ 95.02%