78% simplistic-seo

Code Review | Simplistic SEO

WordPress plugin Simplistic SEO scored78%from 54 tests.

About plugin

  • Plugin page: simplistic-seo
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: May 16, 2017
  • Latest release: Apr 24, 2023
  • Number of updates: 46
  • Update frequency: every 47.2 days
  • Top authors: ruvus (63.04%)walkeezy (39.13%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.30ms] Passed 4 tests

An overview of server-side resources used by Simplistic SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.53 ▲1.39
Dashboard /wp-admin3.47 ▲0.1654.55 ▲8.41
Posts /wp-admin/edit.php3.58 ▲0.2246.79 ▲0.47
Add New Post /wp-admin/post-new.php5.60 ▼0.2972.74 ▼14.65
Media Library /wp-admin/upload.php3.39 ▲0.1638.19 ▲3.60
SEO settings /wp-admin/options-general.php?page=seo_settings3.3639.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Simplistic SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.40 ▼0.061.78 ▼0.1848.39 ▲8.74
Dashboard /wp-admin2,214 ▲234.86 ▼1.04101.73 ▼2.1338.83 ▼6.23
Posts /wp-admin/edit.php2,094 ▲52.03 ▲0.0435.74 ▼3.0430.84 ▼7.37
Add New Post /wp-admin/post-new.php6,276 ▲4,74826.24 ▲3.07924.05 ▲228.3776.03 ▲11.30
Media Library /wp-admin/upload.php1,393 ▲24.25 ▲0.0795.83 ▼8.4542.26 ▼1.97
SEO settings /wp-admin/options-general.php?page=seo_settings1,0482.0825.3031.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=seo_settings
    • > Warning in wp-content/plugins/simplistic-seo/includes/settings.php+187
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplistic-seo/includes/settings.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simplistic-seo/simplistic-seo.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplistic-seo/includes/sitemap.php:207
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplistic-seo/includes/metabox.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simplistic-seo/includes/twittercards.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === simplistic-seo === )
You can take inspiration from this readme.txt

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

The entry point to "Simplistic SEO" version 2.3.0 is a PHP file that has certain tags in its header comment area
55 characters long description:
Everything you need for basic SEO in one simple plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,430 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP624297806
PO File48888264
JavaScript22722131
CSS1180114
Sass1204114
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions28
▷ Named functions2692.86%
▷ Anonymous functions27.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772-250.png30.06KB10.49KB▼ 65.12%
assets/icon-128x128.png11.57KB4.94KB▼ 57.30%
assets/icon-256x256.png23.50KB8.81KB▼ 62.52%
assets/banner-1544x500.png36.23KB10.26KB▼ 71.67%