83% fv-all-in-one-seo-pack

Code Review | FV Simpler SEO

WordPress plugin FV Simpler SEO scored83%from 54 tests.

About plugin

  • Plugin page: fv-all-in-one-seo...
  • Plugin version: 1.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 19, 2009
  • Latest release: Nov 3, 2023
  • Number of updates: 112
  • Update frequency: every 45.8 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /170,421 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
Installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▲4.33ms] Passed 4 tests

Analyzing server-side resources used by FV Simpler SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.50 ▲1.0445.33 ▲9.12
Dashboard /wp-admin4.31 ▲1.0052.21 ▲4.06
Posts /wp-admin/edit.php4.36 ▲1.0054.74 ▲11.78
Add New Post /wp-admin/post-new.php6.83 ▲0.9486.09 ▼2.21
Media Library /wp-admin/upload.php4.17 ▲0.9440.69 ▲6.36
FV Simpler SEO /wp-admin/options-general.php?page=fv_simpler_seo4.1438.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-posts
aioseop_options
widget_theysaidso_widget
fv_simpler_seo_version
db_upgraded
widget_recent-comments
aiosp-shorten-link-install
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for FV Simpler SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11114.81 ▲0.091.77 ▼0.0342.81 ▼2.41
Dashboard /wp-admin2,279 ▲1025.81 ▲0.1599.90 ▲11.1840.07 ▼2.93
Posts /wp-admin/edit.php2,184 ▲842.42 ▲0.2851.39 ▲16.5637.61 ▲1.99
Add New Post /wp-admin/post-new.php6,331 ▲4,80526.04 ▲3.06913.89 ▲246.8190.03 ▲31.84
Media Library /wp-admin/upload.php1,481 ▲814.51 ▲0.35105.32 ▲6.7043.63 ▲0.93
FV Simpler SEO /wp-admin/options-general.php?page=fv_simpler_seo2,3442.4457.8337.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • fv_simpler_seo_version
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • aiosp-shorten-link-install
    • aioseop_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fv-all-in-one-seo-pack/fv_simpler_seo.class.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fv-all-in-one-seo-pack/fv-events.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fv-all-in-one-seo-pack/fv-all-in-one-seo-pack.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (FV Simpler SEO meta box - only the important things remain, the others can be turned on in options), #2 (FV Simpler SEO options screen)
The official readme.txt might help

fv-all-in-one-seo-pack/fv-all-in-one-seo-pack.php 92% from 13 tests

The main PHP script in "FV Simpler SEO" version 1.9.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8,613 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP59533364,609
PO File101,4813,3533,982
Markdown120022

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity278.00
▷ Minimum class complexity20.00
▷ Maximum class complexity769.00
Average method complexity9.07
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods103
▷ Static methods00.00%
▷ Public methods103100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.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
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.89KB10.05KB▼ 59.61%
screenshot-2.png164.22KB43.54KB▼ 73.49%