10% best-seo

Code Review | Expand SEO

WordPress plugin Expand SEO scored10%from 54 tests.

About plugin

  • Plugin page: best-seo
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-5.2.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: May 25, 2019
  • Number of updates: 23
  • Update frequency: every 55.2 days
  • Top authors: thememoz (60.87%)themexpand (43.48%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,706 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Server metrics [RAM: ▼0.85MB] [CPU: ▼37.92ms] Passed 4 tests

Server-side resources used by Expand SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1134.55 ▼6.16
Dashboard /wp-admin3.10 ▼0.2421.71 ▼44.94
Posts /wp-admin/edit.php3.10 ▼0.2526.85 ▼18.50
Add New Post /wp-admin/post-new.php3.10 ▼2.7823.74 ▼75.41
Media Library /wp-admin/upload.php3.10 ▼0.1321.73 ▼12.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Expand SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.64 ▼0.791.58 ▼0.1438.51 ▼1.15
Dashboard /wp-admin2,213 ▲255.86 ▲0.98111.95 ▲9.1341.92 ▲2.17
Posts /wp-admin/edit.php2,116 ▲272.00 ▼0.0238.82 ▲2.3033.81 ▼1.56
Add New Post /wp-admin/post-new.php6,326 ▲4,79326.07 ▲3.07824.08 ▲176.8689.60 ▲34.58
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.0399.04 ▲1.8440.04 ▼4.60
Best Settings /wp-admin/best-seo-admin.php260.440.1012.58

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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/best-seo/best-seo-admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-seo/best-seo.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/best-seo-admin.php
    • > Network (severe)
    wp-admin/best-seo-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

best-seo/best-seo.php Passed 13 tests

The entry point to "Expand SEO" version 1.0.7 is a PHP file that has certain tags in its header comment area
109 characters long description:
Comprehensive Post/Page SEO Analysis and Suggestion Engine. Click "Settings" link below to customize options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin605 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28626605

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/favicon.png5.69KB0.73KB▼ 87.12%
img/thumbs-down.png0.68KB0.92KB0.00%
img/alert-icon.png0.68KB0.92KB0.00%
img/thumbs-up.png1.60KB0.68KB▼ 57.15%