10% ticoseo

Code Review | TicoSEO powered by OpenAI

WordPress plugin TicoSEO powered by OpenAI scored10%from 54 tests.

About plugin

  • Plugin page: ticoseo
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Feb 4, 2023
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: rossini7777 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User error in wp-content/plugins/ticoseo/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.16ms] Passed 4 tests

An overview of server-side resources used by TicoSEO powered by OpenAI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.88 ▼34.56
Dashboard /wp-admin2.08 ▼1.225.84 ▼43.12
Posts /wp-admin/edit.php2.08 ▼1.276.08 ▼45.75
Add New Post /wp-admin/post-new.php2.08 ▼3.806.96 ▼97.21
Media Library /wp-admin/upload.php2.08 ▼1.145.56 ▼28.73

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for TicoSEO powered by OpenAI
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4813.20 ▼1.071.45 ▼0.2540.53 ▲1.30
Dashboard /wp-admin2,220 ▲405.54 ▼0.1285.04 ▼2.4566.40 ▲26.02
Posts /wp-admin/edit.php2,136 ▲362.01 ▼0.0637.67 ▲0.7431.71 ▼4.31
Add New Post /wp-admin/post-new.php1,552 ▲2625.02 ▲2.09614.54 ▼79.4766.26 ▲5.82
Media Library /wp-admin/upload.php1,420 ▲234.17 ▼0.0296.67 ▼8.7940.64 ▼4.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User error in wp-content/plugins/ticoseo/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ticoseo/vendor/micropackage/requirements/tests/bootstrap.php
  • 138× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Ticoseo\\Common\\Abstracts\\Base' not found in wp-content/plugins/ticoseo/src/Bootstrap.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Ticoseo\\Common\\Abstracts\\Base' not found in wp-content/plugins/ticoseo/src/App/Backend/OpenAI.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/ticoseo/vendor/micropackage/requirements/src/Checker/Theme.php:16
    • > PHP Parse error
      syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/ticoseo/vendor/openai-php/client/src/Responses/FineTunes/RetrieveResponseHyperparams.php on line 21
    • > PHP Parse error
      syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/ticoseo/vendor/openai-php/client/src/Responses/Embeddings/CreateResponseUsage.php on line 10
    • > PHP Parse error
      syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/ticoseo/vendor/openai-php/client/src/Responses/Edits/CreateResponseChoice.php on line 10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/ticoseo/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/ticoseo/vendor/micropackage/requirements/tests/Checker/test-wp.php:17
    • > PHP Parse error
      syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/ticoseo/vendor/openai-php/client/src/Responses/Images/CreateResponse.php on line 24
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/ticoseo/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: ai posts, chatgpt, ai, programmatic seo, gpt...

ticoseo/ticoseo.php 92% from 13 tests

The entry point to "TicoSEO powered by OpenAI" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires PHP: Required version must match the one declared in readme.txt ("8.1" instead of "7.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected48,010 lines of code in 290 files:
LanguageFilesBlank linesComment linesLines of code
JSON160028,272
PHP2233,2078,27114,336
Markdown211,37303,877
Sass5970594
JavaScript1361214549
XML3618135
Bourne Shell12111120
YAML37274
PO File191146
SVG2006
CSS2101

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.69
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces48
Interfaces30
Traits7
Classes165
▷ Abstract classes21.21%
▷ Concrete classes16398.79%
▷ Final classes9357.06%
Methods1,119
▷ Static methods20218.05%
▷ Public methods95985.70%
▷ Protected methods70.63%
▷ Private methods15313.67%
Functions138
▷ Named functions3626.09%
▷ Anonymous functions10273.91%
Constants65
▷ Global constants00.00%
▷ Class constants65100.00%
▷ Public constants5483.08%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/src/images/png-placeholder.png0.36KB0.34KB▼ 5.63%
assets/public/images/png-placeholder.png0.34KB0.34KB0.00%