78% sentence-to-seo

Code Review | Sentence To SEO (keywords, description and tags)

WordPress plugin Sentence To SEO (keywords, description and tags) scored78%from 54 tests.

About plugin

  • Plugin page: sentence-to-seo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 10, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: EazyServer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /886 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.33ms] Passed 4 tests

Server-side resources used by Sentence To SEO (keywords, description and tags)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.53 ▼2.90
Dashboard /wp-admin3.32 ▼0.0345.09 ▼20.27
Posts /wp-admin/edit.php3.37 ▲0.0152.21 ▼0.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.45 ▼7.39
Media Library /wp-admin/upload.php3.24 ▲0.0137.65 ▼2.76
SentenceToSEO /wp-admin/options-general.php?page=SentenceToSEO3.1831.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sentence To SEO (keywords, description and tags)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.38 ▲0.141.88 ▲0.0740.33 ▲0.03
Dashboard /wp-admin2,199 ▲185.65 ▼0.1191.30 ▼15.4642.83 ▲2.24
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0139.28 ▼1.7335.81 ▼1.38
Add New Post /wp-admin/post-new.php1,552 ▲723.43 ▲0.10605.04 ▼22.2659.66 ▲6.30
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.02100.86 ▼6.5639.75 ▼5.57
SentenceToSEO /wp-admin/options-general.php?page=SentenceToSEO8472.0223.0727.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=SentenceToSEO
    • > Notice in wp-content/plugins/sentence-to-seo/index.php+87
    Trying to access array offset on value of type null

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sentence-to-seo/index.php:275

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === sentence-to-seo === )
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

sentence-to-seo/index.php 92% from 13 tests

The principal PHP file in "Sentence To SEO (keywords, description and tags)" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sentence-to-seo.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected215 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13825215

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods541.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin