10% webmft-seo-useful

Code Review | WebMFT: Plugin SEO useful

WordPress plugin WebMFT: Plugin SEO useful scored10%from 54 tests.

About plugin

  • Plugin page: webmft-seo-useful
  • Plugin version: 1.8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 40
  • Update frequency: every 2.7 days
  • Top authors: maximusft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/webmft-seo-useful/class.WebMFT_CustomField.php+366
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.55MB] [CPU: ▼49.64ms] Passed 4 tests

Server-side resources used by WebMFT: Plugin SEO useful
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.44 ▼1.037.72 ▼34.70
Dashboard /wp-admin2.46 ▼0.857.74 ▼38.92
Posts /wp-admin/edit.php2.46 ▼0.907.60 ▼37.53
Add New Post /wp-admin/post-new.php2.46 ▼3.439.77 ▼87.41
Media Library /wp-admin/upload.php2.46 ▼0.788.19 ▼24.48

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_webmft_postnext_widget
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_webmft_postmostviewed_widget
db_upgraded
can_compress_scripts
widget_webmft_postprev_widget

Browser metrics Passed 4 tests

WebMFT: Plugin SEO useful: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲15413.66 ▼0.795.51 ▲3.6942.17 ▼1.43
Dashboard /wp-admin2,227 ▲394.88 ▼0.03111.94 ▲1.8741.18 ▼4.94
Posts /wp-admin/edit.php2,107 ▲182.04 ▼0.0241.08 ▲4.5535.46 ▲4.23
Add New Post /wp-admin/post-new.php6,264 ▲4,72926.00 ▲2.96916.12 ▲235.8155.67 ▲3.87
Media Library /wp-admin/upload.php1,406 ▲154.18 ▲0.0396.34 ▼5.1643.54 ▼2.97

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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/webmft-seo-useful/class.WebMFT_CustomField.php+366
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • widget_webmft_postprev_widget
    • widget_webmft_postnext_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_webmft_postmostviewed_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/webmft-seo-useful/ajax-request.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webmft-seo-useful/widgets/PostMostViewed.php:6
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/webmft-seo-useful/ajax-request.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'WebMFT_SEO' not found in wp-content/plugins/webmft-seo-useful/class.WebMFT_SEO_Admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webmft-seo-useful/_features.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webmft-seo-useful/widgets/PostPrev.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webmft-seo-useful/webmft-plugin-seo.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webmft-seo-useful/widgets/PostNext.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: prev post, next post, postviews, most viewed

webmft-seo-useful/webmft-plugin-seo.php 92% from 13 tests

Analyzing the main PHP file in "WebMFT: Plugin SEO useful" version 1.8.6
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("webmft-seo-useful.php" instead of "webmft-plugin-seo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,940 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP124776262,479
CSS3537172,180
Sass2560173
JavaScript116656
Markdown119052

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity47.12
▷ Minimum class complexity9.00
▷ Maximum class complexity169.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods105
▷ Static methods10.95%
▷ Public methods9388.57%
▷ Protected methods21.90%
▷ Private methods109.52%
Functions11
▷ Named functions545.45%
▷ Anonymous functions654.55%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected