84% instant-seo

Code Review | Instant Performance & SEO

WordPress plugin Instant Performance & SEO scored84%from 54 tests.

About plugin

  • Plugin page: instant-seo
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.7
  • WordPress version: 6.3.1
  • First release: Jun 14, 2019
  • Latest release: Mar 5, 2021
  • Number of updates: 10
  • Update frequency: every 63.0 days
  • Top authors: renatello (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,034 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Instant Performance & SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.00 ▼1.57
Dashboard /wp-admin3.31 ▲0.0143.19 ▼8.42
Posts /wp-admin/edit.php3.36 ▲0.0047.13 ▲1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.66 ▼19.99
Media Library /wp-admin/upload.php3.23 ▲0.0032.72 ▼0.45
Instant SEO /wp-admin/options-general.php?page=instant-seo/instant-seo-options.php3.2226.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Instant Performance & SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.47 ▲0.311.82 ▲0.0738.51 ▼6.40
Dashboard /wp-admin2,213 ▲254.80 ▼0.12112.27 ▲2.1442.34 ▼4.22
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0234.81 ▼3.4830.55 ▼4.75
Add New Post /wp-admin/post-new.php1,536 ▲323.19 ▼0.18673.30 ▼3.7652.57 ▼19.89
Media Library /wp-admin/upload.php1,395 ▲104.20 ▲0.0194.30 ▼4.9142.90 ▼3.15
Instant SEO /wp-admin/options-general.php?page=instant-seo/instant-seo-options.php7602.0624.4825.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/instant-seo/instant-seo-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instant-seo/instant-seo.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: performance, instant, seo

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

The main PHP file in "Instant Performance & SEO" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
Improve your site SEO and performance.

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
Good job! No executable or dangerous file extensions detected32 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP251431
JavaScript1011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin