84% seo-generator

Code Review | SEO Generator

WordPress plugin SEO Generator scored84%from 54 tests.

About plugin

  • Plugin page: seo-generator
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Feb 27, 2021
  • Latest release: Jan 20, 2022
  • Number of updates: 18
  • Update frequency: every 18.3 days
  • Top authors: zahardoc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.59ms] Passed 4 tests

A check of server-side resources used by SEO Generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.32 ▲5.79
Dashboard /wp-admin3.40 ▲0.0548.33 ▼10.98
Posts /wp-admin/edit.php3.51 ▲0.1545.66 ▼3.14
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.10 ▼28.66
Media Library /wp-admin/upload.php3.32 ▲0.0937.27 ▲4.41
All SEO Texts /wp-admin/edit.php?post_type=seotext3.3636.14
Settings /wp-admin/edit.php?post_type=seotext&page=seo-generator-settings3.2932.49
Add New /wp-admin/post-new.php?post_type=seotext3.4545.65

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

SEO Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.39 ▼1.021.74 ▲0.2043.17 ▲2.68
Dashboard /wp-admin2,240 ▲494.86 ▼1.04113.88 ▲12.0942.57 ▲2.98
Posts /wp-admin/edit.php2,123 ▲342.02 ▲0.0235.46 ▼5.1330.14 ▼5.48
Add New Post /wp-admin/post-new.php6,564 ▲5,02622.43 ▼0.79944.30 ▲216.2882.45 ▲24.27
Media Library /wp-admin/upload.php1,419 ▲284.18 ▼0.0395.61 ▼7.7941.24 ▼4.33
All SEO Texts /wp-admin/edit.php?post_type=seotext1,0892.0037.4837.09
Settings /wp-admin/edit.php?post_type=seotext&page=seo-generator-settings8422.0624.9426.07
Add New /wp-admin/post-new.php?post_type=seotext2,2187.56163.0360.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/seo-generator/app/config/cpt-seotext.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/seo-generator/app/config/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: generator, seo, content

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

"SEO Generator" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Generates SEO texts by templates

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
Good job! No executable or dangerous file extensions detected382 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111627382

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27100.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants8
▷ Global constants450.00%
▷ Class constants450.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin