10% seo-multiposition

Code Review | SEO Multi Position

WordPress plugin SEO Multi Position scored 10% from 54 tests.

About plugin

  • Plugin page: seo-multiposition
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Apr 4, 2021
  • Number of updates: 58
  • Update frequency: every 38.8 days
  • Top authors: moskitothemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 2,843 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/seo-multiposition/seo-multi-position.php+24
    include(unlock.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.71MB] [CPU: ▼49.59ms] Passed 4 tests

An overview of server-side resources used by SEO Multi Position
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.185.89 ▼36.21
Dashboard /wp-admin2.30 ▼1.018.06 ▼33.75
Posts /wp-admin/edit.php2.30 ▼1.067.91 ▼36.54
Add New Post /wp-admin/post-new.php2.30 ▼3.596.76 ▼91.87
Media Library /wp-admin/upload.php2.30 ▼0.937.03 ▼28.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: 7 new tables, 7 new options
New tables
wp_seo_multi_position
wp_seo_multi_position_list_utility
wp_seo_multi_position_list
wp_seo_multi_position_list_attr
wp_seo_multi_position_list_municipal
wp_seo_multi_position_list_brand
wp_seo_multi_position_unlock_code
New WordPress options
db_upgraded
theysaidso_admin_options
widget_rsduplicatepagewidget
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

SEO Multi Position: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.58 ▼0.804.14 ▲2.4938.99 ▼6.54
Dashboard /wp-admin2,205 ▲135.82 ▲0.8794.73 ▼14.4240.38 ▲0.31
Posts /wp-admin/edit.php2,094 ▲52.00 ▲0.0139.64 ▲3.5634.90 ▲4.32
Add New Post /wp-admin/post-new.php1,516 ▼417.42 ▼5.71655.39 ▼54.2467.67 ▲16.23
Media Library /wp-admin/upload.php1,393 ▲24.17 ▼0.0296.29 ▲1.4243.35 ▲0.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/seo-multiposition/seo-multi-position.php+24
    include(unlock.php): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_rsduplicatepagewidget
    • widget_theysaidso_widget

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-multiposition/duplicate.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/seo-multiposition/metabox/meta/page-header.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/seo-multiposition/metabox/meta/page-header.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-multiposition/metabox/meta/page-header.php:12
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/seo-multiposition/metabox/meta/page-header.php on line 3
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/seo-multiposition/duplicate.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-multiposition/metabox/meta/page-header.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/seo-multiposition/seo-multi-position.php:15
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/seo-multiposition/metabox/meta/page-header.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-multiposition/core/base.php:265

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === seo-multiposition === )
You can take inspiration from this readme.txt

seo-multiposition/seo-multi-position.php 77% from 13 tests

The main PHP file in "SEO Multi Position" ver. 2.3.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 547 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-multiposition.php" instead of "seo-multi-position.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin2,180 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP273101372,159
CSS15015
JavaScript1106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.55
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods68
▷ Static methods00.00%
▷ Public methods68100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/plugin-FAQ.png9.19KB4.61KB▼ 49.88%