84% wp-smart-seo

Code Review | WP Smart SEO

WordPress plugin WP Smart SEO scored84%from 54 tests.

About plugin

  • Plugin page: wp-smart-seo
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 6, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 49
  • Update frequency: every 31.8 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,097 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Smart SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.60 ▲1.78
Dashboard /wp-admin3.39 ▲0.0445.19 ▼13.42
Posts /wp-admin/edit.php3.44 ▲0.0843.76 ▼6.32
Add New Post /wp-admin/post-new.php6.02 ▲0.1380.64 ▼23.84
Media Library /wp-admin/upload.php3.31 ▲0.0834.31 ▲1.90
WP Smart SEO /wp-admin/options-general.php?page=QWA_seomae3.2830.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Smart SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3914.14 ▼0.241.73 ▼0.1844.39 ▲2.39
Dashboard /wp-admin2,203 ▲295.59 ▲0.0581.02 ▼8.7139.16 ▼1.17
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0234.05 ▼5.0534.68 ▼3.03
Add New Post /wp-admin/post-new.php6,435 ▲4,90919.01 ▼4.03878.26 ▲248.4375.53 ▲27.97
Media Library /wp-admin/upload.php1,408 ▲54.20 ▼0.0393.72 ▼9.0941.55 ▼2.36
WP Smart SEO /wp-admin/options-general.php?page=QWA_seomae9791.9921.8026.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-seo/meta_box_category.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-smart-seo/meta_box_fields.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-smart-seo/_wpsmartseo_wpseo.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-seo/meta_box.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-smart-seo/error_field.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-smart-seo/_wpsmartseo_text.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_category() in wp-content/plugins/wp-smart-seo/_wpsmartseo_category.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-seo/add_to_head.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: A description for screenshot #1 is required in wp-smart-seo/assets to your readme.txt
The official readme.txt is a good inspiration

wp-smart-seo/wp-smart-seo.php Passed 13 tests

"WP Smart SEO" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
WP Smart SEO WP Smart SEO Administration

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,621 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11358168841
PO File5280291730
CSS1191450

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.22
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%
Functions19
▷ Named functions19100.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
No PNG images were found in this plugin