84% simple-seo-criteria-check

Code Review | Simple SEO Criteria Check

WordPress plugin Simple SEO Criteria Check scored84%from 54 tests.

About plugin

  • Plugin page: simple-seo-criter...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: Sep 3, 2023
  • Number of updates: 14
  • Update frequency: every 98.6 days
  • Top authors: blapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,013 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.03ms] Passed 4 tests

Server-side resources used by Simple SEO Criteria Check
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.32 ▼0.72
Dashboard /wp-admin3.39 ▲0.0443.45 ▼13.89
Posts /wp-admin/edit.php3.50 ▲0.1444.60 ▼0.94
Add New Post /wp-admin/post-new.php5.99 ▲0.1094.57 ▼4.57
Media Library /wp-admin/upload.php3.31 ▲0.0837.77 ▲3.84
sscc image /wp-admin/admin.php?page=sscc_images3.2830.63
Simple SEO Criteria Check /wp-admin/tools.php?page=sscc_permlinks3.3132.06
sscc link /wp-admin/admin.php?page=sscc_links3.3137.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Simple SEO Criteria Check: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.29 ▼1.101.61 ▼0.2644.48 ▲4.75
Dashboard /wp-admin2,215 ▲235.91 ▲1.03105.52 ▲0.7140.99 ▼1.89
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0538.93 ▼3.7236.77 ▼0.92
Add New Post /wp-admin/post-new.php1,525 ▼322.95 ▲4.47592.25 ▼36.3153.71 ▼0.90
Media Library /wp-admin/upload.php1,397 ▲154.20 ▲0.0493.52 ▼2.0142.43 ▲0.13
sscc image /wp-admin/admin.php?page=sscc_images7702.1824.8021.89
Simple SEO Criteria Check /wp-admin/tools.php?page=sscc_permlinks8192.0623.9226.06
sscc link /wp-admin/admin.php?page=sscc_links8332.0624.7925.03

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× 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/simple-seo-criteria-check/simple-seo-criteria-check.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

simple-seo-criteria-check/simple-seo-criteria-check.php Passed 13 tests

"Simple SEO Criteria Check" version 2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
The Simple SEO Criteria Check. Open the Tools page to get your individual results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,024 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP410623449
HTML1130226
JavaScript230111164
PO File15366107
CSS16037
JSON10022
Markdown110019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin