84% simple-seo-improvements

Code Review | Simple SEO Improvements

WordPress plugin Simple SEO Improvements scored84%from 54 tests.

About plugin

  • Plugin page: simple-seo-improv...
  • Plugin version: 2.0.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: May 22, 2021
  • Latest release: Nov 22, 2023
  • Number of updates: 57
  • Update frequency: every 16.0 days
  • Top authors: iworks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Simple SEO Improvements
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.12 ▼0.38
Dashboard /wp-admin3.31 ▼0.0446.85 ▼15.43
Posts /wp-admin/edit.php3.36 ▲0.0048.75 ▼2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.17 ▼0.32
Media Library /wp-admin/upload.php3.23 ▲0.0034.44 ▼2.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple SEO Improvements
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.54 ▲0.171.79 ▲0.1239.91 ▼3.26
Dashboard /wp-admin2,198 ▲265.59 ▼0.0993.67 ▼9.6542.18 ▲1.61
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0139.07 ▼6.5836.48 ▼1.03
Add New Post /wp-admin/post-new.php1,526 ▼323.52 ▲0.50630.13 ▲40.3755.59 ▲5.74
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0196.68 ▲1.1542.04 ▲0.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Sitemaps_Provider' not found in wp-content/plugins/simple-seo-improvements/includes/iworks/simple-seo-improvements/class-sitemaps-attachements.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

simple-seo-improvements/simple-seo-improvements.php Passed 13 tests

The main PHP file in "Simple SEO Improvements" ver. 2.0.3 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Simple SEO improvements - lightweight solution to power up your website.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,133 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP234371,7445,227
JavaScript75094424
CSS6239181
Markdown2760155
Sass180138
SVG2008

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 193)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity51.25
▷ Minimum class complexity1.00
▷ Maximum class complexity392.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity193.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods223
▷ Static methods10.45%
▷ Public methods13158.74%
▷ Protected methods177.62%
▷ Private methods7533.63%
Functions10
▷ Named functions10100.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
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/iworks/options/assets/styles/images/ui-icons_ffffff_256x240.png3.54KB3.86KB0.00%
includes/iworks/options/assets/styles/images/ui-icons_444444_256x240.png3.50KB3.83KB0.00%
includes/iworks/options/assets/styles/images/ui-icons_777620_256x240.png3.50KB3.82KB0.00%
includes/iworks/options/assets/styles/images/ui-icons_555555_256x240.png3.48KB3.81KB0.00%
includes/iworks/options/assets/styles/images/ui-icons_777777_256x240.png3.46KB3.80KB0.00%