77% upfiv-complete-all-in-one-seo-wizard

Code Review | Wordpress Auto SEO Plugin - Upfiv SEO Wizard

WordPress plugin Wordpress Auto SEO Plugin - Upfiv SEO Wizard scored 77% from 54 tests.

About plugin

  • Plugin page: upfiv-complete-al...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 5.9.2
  • First release: Jan 28, 2020
  • Latest release: Apr 13, 2020
  • Number of updates: 82
  • Update frequency: every 0.9 days
  • Top authors: upfiv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 731 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.56MB] [CPU: ▼280.55ms] Passed 4 tests

This is a short check of server-side resources used by Wordpress Auto SEO Plugin - Upfiv SEO Wizard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /8.44 ▲4.9274.51 ▲24.84
Dashboard /wp-admin8.45 ▲5.0456.74 ▲22.03
Posts /wp-admin/edit.php8.46 ▲4.8159.73 ▲22.75
Add New Post /wp-admin/post-new.php10.45 ▲3.48120.02 ▼1,184.18
Media Library /wp-admin/upload.php8.46 ▲5.1546.01 ▲17.20
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius8.4640.41

Server storage [IO: ▲25.13MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Filesystem usage must be lower than 25MB (currently using 25.13MB)
Filesystem: 232 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_active_plugins
fs_gdpr
fs_debug_mode

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Auto SEO Plugin - Upfiv SEO Wizard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,983 ▲23916.38 ▲0.418.73 ▼1.752.04 ▼0.28
Dashboard /wp-admin2,999 ▲1386.21 ▲0.04122.11 ▼15.15211.81 ▲47.95
Posts /wp-admin/edit.php2,802 ▲1113.13 ▼0.1166.62 ▲1.43158.92 ▲20.00
Add New Post /wp-admin/post-new.php1,783 ▲12216.25 ▼0.84403.54 ▼38.07172.82 ▲12.53
Media Library /wp-admin/upload.php1,805 ▲1075.61 ▲0.11130.89 ▼12.60225.50 ▲33.86
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius1,4952.7455.01118.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 4 options
    • fs_accounts
    • fs_debug_mode
    • fs_active_plugins
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php
    • > /wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/public/partials/upfiv-public-display.php
    • > /wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-popup.php
  • 33× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 227
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 206
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 167
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 228
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/freemius/templates/account/partials/addon.php on line 8
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 53
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/freemius/templates/account/partials/addon.php:9
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 113
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 74
    • > PHP Warning
      Use of undefined constant Cn_Upfiv_URI - assumed 'Cn_Upfiv_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/upfiv-complete-all-in-one-seo-wizard/admin/partials/upfiv-admin-display.php on line 207

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

upfiv-complete-all-in-one-seo-wizard/upfiv.php 92% from 13 tests

"Wordpress Auto SEO Plugin - Upfiv SEO Wizard" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("upfiv-complete-all-in-one-seo-wizard.php" instead of "upfiv.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin46,240 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
PHP1197,23216,40430,180
PO File176,9858,48015,386
CSS141218229
JavaScript56186226
Markdown1610192
JSON10027

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,772)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity75.52
▷ Minimum class complexity1.00
▷ Maximum class complexity2,772.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,148
▷ Static methods17515.24%
▷ Public methods80369.95%
▷ Protected methods151.31%
▷ Private methods33028.75%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants124
▷ Global constants9979.84%
▷ Class constants2520.16%
▷ Public constants25100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 1.23MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/video/cn_video/Plugin Screenshot Upfiv Local Reviews 2020-01-17 at 5.15.13 PM.png74.63KB24.97KB▼ 66.54%
assets/screenshot-1.png259.28KB70.78KB▼ 72.70%
admin/img/Plugin Screenshot Upfiv Local Reviews 2020-01-17 at 5.15.13 PM.png74.63KB24.97KB▼ 66.54%
assets/banner-772x2501.png134.52KB41.01KB▼ 69.51%
admin/video/cn_video/Plugin Screenshot Upfiv Competitor Rank (2) 2020-01-17 at 5.14.42 PM.png61.68KB22.93KB▼ 62.82%