53% elevate-seo

Code Review | Elevate SEO

WordPress plugin Elevate SEO scored53%from 54 tests.

About plugin

  • Plugin page: elevate-seo
  • Plugin version: 1.4.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Apr 16, 2021
  • Number of updates: 90
  • Update frequency: every 11.0 days
  • Top authors: lindellmedia (90%)duanestorey (11.11%)

Code review

54 tests

User reviews

9 reviews

Install metrics

40+ active /4,644 total downloads

Benchmarks

Plugin footprint 48% 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.73MB] [CPU: ▼0.44ms] Passed 4 tests

An overview of server-side resources used by Elevate SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.7953.51 ▲7.10
Dashboard /wp-admin4.06 ▲0.7561.76 ▲3.90
Posts /wp-admin/edit.php4.11 ▲0.7558.06 ▲4.02
Add New Post /wp-admin/post-new.php6.55 ▲0.6694.69 ▼11.53
Media Library /wp-admin/upload.php3.99 ▲0.7550.55 ▲1.83
Performance /wp-admin/admin.php?page=elevate_performance3.0910.13
Sitemap /wp-admin/admin.php?page=elevate_sitemap3.0910.93
Social Media /wp-admin/admin.php?page=elevate_social3.0910.09
General /wp-admin/admin.php?page=elevate_general3.0912.00
Search /wp-admin/admin.php?page=elevate_search3.0912.27
Get Started /wp-admin/admin.php?page=elevate_plugin3.0910.09
Redirects /wp-admin/admin.php?page=elevate_redirects3.0912.08

Server storage [IO: ▲23.33MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 186 new files
Database: 5 new tables, 10 new options
New tables
wp_elevate_redirects
wp_elevate_speed
wp_elevate_404
wp_elevate_search
wp_elevate_visits
New WordPress options
widget_theysaidso_widget
elevate_cron_set_by
widget_recent-posts
elevate_last_version_check
db_upgraded
theysaidso_admin_options
widget_recent-comments
elevate_db_version
category_children
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elevate SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13014.28 ▼0.072.02 ▲0.0443.29 ▼1.43
Dashboard /wp-admin2,257 ▲805.50 ▼0.0899.95 ▼2.9843.10 ▼2.03
Posts /wp-admin/edit.php2,162 ▲622.02 ▲0.0536.49 ▼0.6234.50 ▲0.40
Add New Post /wp-admin/post-new.php6,746 ▲5,22029.75 ▲6.73995.55 ▲283.4884.77 ▲23.59
Media Library /wp-admin/upload.php1,462 ▲624.15 ▼0.00100.22 ▼15.7846.37 ▼6.89
Performance /wp-admin/admin.php?page=elevate_performance9113.2350.1837.88
Sitemap /wp-admin/admin.php?page=elevate_sitemap9062.6735.6427.25
Social Media /wp-admin/admin.php?page=elevate_social1,0443.1938.5134.52
General /wp-admin/admin.php?page=elevate_general1,0153.5440.0838.32
Search /wp-admin/admin.php?page=elevate_search1,0623.4043.5229.38
Get Started /wp-admin/admin.php?page=elevate_plugin1,9883.4449.0447.05
Redirects /wp-admin/admin.php?page=elevate_redirects9143.0739.8031.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/elevate-seo/src/elevate-class.php+658
    Function get_magic_quotes_gpc() is deprecated
  • The uninstall procedure failed, leaving 5 tables in the database
    • wp_elevate_404
    • wp_elevate_redirects
    • wp_elevate_visits
    • wp_elevate_search
    • wp_elevate_speed
  • Zombie WordPress options were found after uninstall: 9 options
    • category_children
    • theysaidso_admin_options
    • elevate_last_version_check
    • db_upgraded
    • elevate_db_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=elevate_redirects
    • > Deprecated in wp-content/plugins/elevate-seo/src/elevate-class.php+658
    Function get_magic_quotes_gpc() is deprecated
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=elevate_plugin
    • > Notice in wp-content/plugins/elevate-seo/src/apache.php+27
    Undefined variable: apache_instance

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/elevate-seo/admin/settings/spacer.php
  • 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ElevateSettingsPage' not found in wp-content/plugins/elevate-seo/admin/pages/general.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/elevate-seo/admin/pages/wizard.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ElevateSettingsPage' not found in wp-content/plugins/elevate-seo/admin/pages/google.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elevate-seo/admin/settings/checkbox.php:1
    • > PHP Warning
      Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/elevate-seo/src/local-cache.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'ElevatePlugin' not found in wp-content/plugins/elevate-seo/admin/meta/titles.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elevate-seo/admin/settings/select.php:1
    • > PHP Warning
      Use of undefined constant ELEVATE_PLUGIN_URL - assumed 'ELEVATE_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/elevate-seo/src/config.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elevate-seo/admin/settings/tooltip.php:1
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/elevate-seo/src/local-cache.php on line 3

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)
There were no browser issues found

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
5 plugin tags: sitemap, seo, woocommerce, google, pagespeed

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

The primary PHP file in "Elevate SEO" version 1.4.4 is used by WordPress to initiate all plugin functionality
59 characters long description:
Search Engine Optimization and Performance Monitoring Suite

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin121,339 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1818,08917,82288,768
CSS153,60311513,324
SVG60125,688
PO File51,7901,9695,588
PHP481,4445055,242
Sass646202,527
Stylus123698
SQL50047
JSON10040
Markdown210017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.03
▷ Minimum class complexity1.00
▷ Maximum class complexity466.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes13.33%
▷ Concrete classes2996.67%
▷ Final classes00.00%
Methods277
▷ Static methods217.58%
▷ Public methods19470.04%
▷ Protected methods93.25%
▷ Private methods7426.71%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants40
▷ Global constants3792.50%
▷ Class constants37.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/line1.png4.84KB0.11KB▼ 97.72%
assets/images/line2.png4.86KB0.11KB▼ 97.73%
dist/images/map.png98.14KB41.40KB▼ 57.81%
dist/images/bing.png1.80KB1.45KB▼ 19.16%
dist/images/line2.png0.25KB0.11KB▼ 55.34%