10% flexy-seo

Code Review | Flexy SEO

WordPress plugin Flexy SEO scored10%from 54 tests.

About plugin

  • Plugin page: flexy-seo
  • Plugin version: 1.9.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 13, 2021
  • Latest release: Nov 30, 2023
  • Number of updates: 57
  • Update frequency: every 16.9 days
  • Top authors: sh1zen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,883 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/flexy-seo/vendors/wps-framework/Query.class.php+214
    syntax error, unexpected '=>' (T_DOUBLE_ARROW)

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.59ms] Passed 4 tests

An overview of server-side resources used by Flexy SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.28 ▼6.69
Dashboard /wp-admin3.31 ▼0.0443.73 ▼18.88
Posts /wp-admin/edit.php3.36 ▲0.0047.03 ▼0.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.74 ▼8.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.06 ▲2.43

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Flexy SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.29 ▼0.031.74 ▼0.0538.98 ▼4.10
Dashboard /wp-admin2,195 ▲185.60 ▼0.0593.88 ▼5.3141.38 ▲0.50
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0539.49 ▲0.7934.33 ▲0.97
Add New Post /wp-admin/post-new.php1,529 ▲323.78 ▲0.65623.47 ▼63.1957.95 ▼3.70
Media Library /wp-admin/upload.php1,394 ▼64.23 ▼0.0595.44 ▼10.9641.53 ▼1.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 40× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FlexySEO\\Engine\\Generators\\Schema\\Graphs\\Article' not found in wp-content/plugins/flexy-seo/modules/seo/seo_engine/generators/schema/graph/NewsArticle.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'FlexySEO\\Engine\\Generators\\Schema\\Graphs\\Graph' not found in wp-content/plugins/flexy-seo/modules/seo/seo_engine/generators/schema/graph/WebSite.php:16
    • > PHP Warning
      Use of undefined constant WPFS_SEO_ENGINE - assumed 'WPFS_SEO_ENGINE' (this will throw an Error in a future version of PHP) in wp-content/plugins/flexy-seo/modules/seo/seo_engine/loader.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'FlexySEO\\Engine\\Default_Generator' not found in wp-content/plugins/flexy-seo/modules/seo/seo_engine/generators/template/E404-generator.php:13
    • > PHP Parse error
      syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/flexy-seo/vendors/wps-framework/Query.class.php on line 214
    • > PHP Warning
      Use of undefined constant WPS_FRAMEWORK - assumed 'WPS_FRAMEWORK' (this will throw an Error in a future version of PHP) in wp-content/plugins/flexy-seo/vendors/wps-framework/functions/autoload.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'FlexySEO\\Engine\\Generators\\Schema\\Graphs\\WebPage' not found in wp-content/plugins/flexy-seo/modules/seo/seo_engine/generators/schema/graph/CollectionPage.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'FlexySEO\\Engine\\Default_Generator' not found in wp-content/plugins/flexy-seo/modules/seo/seo_engine/generators/template/home-generator.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WPS\\core\\UtilEnv' not found in wp-content/plugins/flexy-seo/admin/upgrades/1.4.0.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FlexySEO\\Engine\\Default_Generator' not found in wp-content/plugins/flexy-seo/modules/seo/seo_engine/generators/template/date-archive-generator.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: serp, seo, ranking, content analysis, schema...

flexy-seo/flexy-seo.php 92% from 13 tests

The principal PHP file in "Flexy SEO" v. 1.9.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin13,298 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
PHP933,3512,30611,364
CSS516118975
JavaScript227657946
XML10013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity24.11
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes72
▷ Abstract classes11.39%
▷ Concrete classes7198.61%
▷ Final classes00.00%
Methods712
▷ Static methods15621.91%
▷ Public methods56979.92%
▷ Protected methods223.09%
▷ Private methods12116.99%
Functions83
▷ Named functions6679.52%
▷ Anonymous functions1720.48%
Constants23
▷ Global constants313.04%
▷ Class constants2086.96%
▷ Public constants20100.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
PNG images were not found in this plugin