83% sewn-in-simple-seo

Code Review | Sewn In Simple SEO

WordPress plugin Sewn In Simple SEO scored83%from 54 tests.

About plugin

  • Plugin page: sewn-in-simple-seo
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Sep 2, 2017
  • Number of updates: 24
  • Update frequency: every 38.9 days
  • Top authors: jcow (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,034 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.27ms] Passed 4 tests

Analyzing server-side resources used by Sewn In Simple SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1738.85 ▲0.42
Dashboard /wp-admin3.45 ▲0.1540.59 ▼5.61
Posts /wp-admin/edit.php3.50 ▲0.1444.87 ▼3.93
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.73 ▼7.94
Media Library /wp-admin/upload.php3.31 ▲0.0836.21 ▲2.01

Server storage [IO: ▲0.19MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Sewn In Simple SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.17 ▼1.214.30 ▲2.7038.00 ▼5.35
Dashboard /wp-admin2,206 ▲185.86 ▼0.02115.41 ▲11.4041.74 ▲1.51
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0239.29 ▲3.4135.19 ▼2.16
Add New Post /wp-admin/post-new.php6,461 ▲4,92821.76 ▼1.32872.00 ▲197.5086.67 ▲33.59
Media Library /wp-admin/upload.php1,388 ▲64.31 ▲0.1495.43 ▼9.3038.36 ▼6.94

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Sewn_Seo_Frontend' not found in wp-content/plugins/sewn-in-simple-seo/includes/class-frontend-social.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Sewn_Seo_Frontend' not found in wp-content/plugins/sewn-in-simple-seo/includes/class-frontend-seo.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: You can look at the official readme.txt

sewn-in-simple-seo/sewn-simple-seo.php 85% from 13 tests

The main file in "Sewn In Simple SEO" v. 2.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("sewn-in-simple-seo.php" instead of "sewn-simple-seo.php")

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
There were no executable files found in this plugin2,009 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP83127761,627
CSS2276235
JavaScript32530147

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity42.43
▷ Minimum class complexity3.00
▷ Maximum class complexity78.00
Average method complexity4.97
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin