84% s-dev-seo

Code Review | S-DEV SEO

WordPress plugin S-DEV SEO scored84%from 54 tests.

About plugin

  • Plugin page: s-dev-seo
  • Plugin version: 1.88
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 6.3.1
  • First release: Dec 3, 2019
  • Latest release: May 25, 2020
  • Number of updates: 43
  • Update frequency: every 4.1 days
  • Top authors: seodevrobin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,065 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.67ms] Passed 4 tests

This is a short check of server-side resources used by S-DEV SEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.35 ▼11.19
Dashboard /wp-admin3.44 ▲0.1445.53 ▼6.15
Posts /wp-admin/edit.php3.56 ▲0.2047.42 ▼6.87
Add New Post /wp-admin/post-new.php5.58 ▼0.3181.45 ▼6.47
Media Library /wp-admin/upload.php3.37 ▲0.1435.86 ▲3.70
SEO Settings /wp-admin/admin.php?page=sdev-seo-settings3.3330.14
SEO Overview /wp-admin/admin.php?page=sdev-seo-overview3.3639.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
category_children
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
wpse_sdevseo_settings
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by S-DEV SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.68 ▼0.951.84 ▼0.2241.69 ▼6.45
Dashboard /wp-admin2,228 ▲404.84 ▼0.05108.75 ▼3.8044.00 ▼0.94
Posts /wp-admin/edit.php2,114 ▲252.06 ▲0.0040.45 ▼0.0934.98 ▲0.03
Add New Post /wp-admin/post-new.php6,247 ▲4,73319.05 ▲1.40827.25 ▲219.6970.74 ▲9.15
Media Library /wp-admin/upload.php1,407 ▲164.20 ▼0.0395.72 ▼5.6641.26 ▼4.54
SEO Settings /wp-admin/admin.php?page=sdev-seo-settings8472.0324.7341.08
SEO Overview /wp-admin/admin.php?page=sdev-seo-overview9381.8024.3630.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • category_children
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s-dev-seo/inc/admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s-dev-seo/inc/replace.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s-dev-seo/inc/opengraph.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s-dev-seo/inc/views.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s-dev-seo/inc/metabox.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s-dev-seo/inc/conditions.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: seo, title, meta description

s-dev-seo/sdev-seo.php 85% from 13 tests

"S-DEV SEO" version 1.88's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("s-dev-seo.php" instead of "sdev-seo.php")

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
Success! There were no dangerous files found in this plugin1,041 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP1054973869
CSS1276125
JavaScript134047

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions25
▷ Named functions25100.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
No PNG files were detected