72% diagnoseo

Code Review | DiagnoSEO - SEO Plugin for WordPress using ChatGPT - Best in 2023

WordPress plugin DiagnoSEO - SEO Plugin for WordPress using ChatGPT - Best in 2023 scored72%from 54 tests.

About plugin

  • Plugin page: diagnoseo
  • Plugin version: 1.2.20
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 46
  • Update frequency: every 15.1 days
  • Top authors: diagnoseo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20+ active /2,881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲1.65ms] Passed 4 tests

This is a short check of server-side resources used by DiagnoSEO - SEO Plugin for WordPress using ChatGPT - Best in 2023
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6860.03 ▲11.15
Dashboard /wp-admin3.41 ▲0.0749.05 ▼12.62
Posts /wp-admin/edit.php3.47 ▲0.1148.02 ▲2.18
Add New Post /wp-admin/post-new.php6.30 ▲0.41106.28 ▲18.09
Media Library /wp-admin/upload.php3.34 ▲0.1141.09 ▲5.88
Tools /wp-admin/admin.php?page=diagnoseo-tools3.3436.74
DiagnoSEO /wp-admin/admin.php?page=diagnoseo-settings3.4041.23
Script settings /wp-admin/admin.php?page=diagnoseo-settings-scripts3.3537.07
Breadcrumbs /wp-admin/customize.php?autofocus[section]=diagnoseo_breadcrumbs7.75156.98
Import post meta /wp-admin/admin.php?page=diagnoseo-import-postmeta3.4539.99
Social/OpenGraph settings /wp-admin/admin.php?page=diagnoseo-settings-social3.4043.28
Redirection settings /wp-admin/admin.php?page=diagnoseo-redirections3.3641.47
Sitemap settings /wp-admin/admin.php?page=diagnoseo-settings-sitemap3.3538.67
Schema settings /wp-admin/admin.php?page=diagnoseo-settings-schema3.4645.33
Meta tags /wp-admin/admin.php?page=diagnoseo-settings-meta3.5149.09

Server storage [IO: ▲0.49MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for DiagnoSEO - SEO Plugin for WordPress using ChatGPT - Best in 2023
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲19614.35 ▼0.061.72 ▼0.6135.95 ▼4.83
Dashboard /wp-admin2,292 ▲1155.55 ▼0.1186.58 ▼11.7440.89 ▼2.18
Posts /wp-admin/edit.php2,196 ▲961.99 ▼0.0341.71 ▲5.8338.89 ▲1.50
Add New Post /wp-admin/post-new.php7,173 ▲5,64727.94 ▲4.97932.58 ▲260.97100.30 ▲44.03
Media Library /wp-admin/upload.php1,499 ▲994.29 ▲0.1099.06 ▼4.6242.50 ▲1.94
Tools /wp-admin/admin.php?page=diagnoseo-tools8992.0426.7326.91
DiagnoSEO /wp-admin/admin.php?page=diagnoseo-settings1,2552.0526.6231.49
Script settings /wp-admin/admin.php?page=diagnoseo-settings-scripts9422.0123.9527.10
Breadcrumbs /wp-admin/customize.php?autofocus[section]=diagnoseo_breadcrumbs8,51221.75590.68128.78
Import post meta /wp-admin/admin.php?page=diagnoseo-import-postmeta9572.0425.3127.03
Social/OpenGraph settings /wp-admin/admin.php?page=diagnoseo-settings-social1,1773.3964.0953.46
Redirection settings /wp-admin/admin.php?page=diagnoseo-redirections8702.0128.3825.99
Sitemap settings /wp-admin/admin.php?page=diagnoseo-settings-sitemap9222.0229.5829.81
Schema settings /wp-admin/admin.php?page=diagnoseo-settings-schema1,9223.6948.7927.68
Meta tags /wp-admin/admin.php?page=diagnoseo-settings-meta2,0463.7059.8862.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=diagnoseo-tools
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
The following issues need your attention
  • 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/diagnoseo/includes/customize/breadcrumbs.php:126

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/customize.php?autofocus[section]=diagnoseo_breadcrumbs
    • > Security (warning) in unknown
    /?customize_changeset_uuid=ade1af3d-1f46-441c-91ef-1fd2cd31d5ec&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

diagnoseo/diagnoseo.php 92% from 13 tests

The main PHP file in "DiagnoSEO - SEO Plugin for WordPress using ChatGPT - Best in 2023" ver. 1.2.20 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin6,284 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP417781,0826,269
JavaScript100010
CSS3003
Markdown1001
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.29
▷ Minimum class complexity1.00
▷ Maximum class complexity144.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods91
▷ Static methods11.10%
▷ Public methods6268.13%
▷ Protected methods00.00%
▷ Private methods2931.87%
Functions92
▷ Named functions8693.48%
▷ Anonymous functions66.52%
Constants19
▷ Global constants19100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/favicon.png0.48KB0.50KB0.00%