78% mazen-seo-connector

Code Review | Mazen SEO Connector

WordPress plugin Mazen SEO Connector scored78%from 54 tests.

About plugin

  • Plugin page: mazen-seo-connector
  • Plugin version: 1.6.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Mar 1, 2017
  • Latest release: Dec 13, 2017
  • Number of updates: 152
  • Update frequency: every 1.9 days
  • Top authors: optimizme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼5.79ms] Passed 4 tests

Analyzing server-side resources used by Mazen SEO Connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3242.74 ▼3.30
Dashboard /wp-admin3.61 ▲0.3150.99 ▼6.32
Posts /wp-admin/edit.php3.67 ▲0.3253.43 ▼4.25
Add New Post /wp-admin/post-new.php6.19 ▲0.3191.53 ▼9.27
Media Library /wp-admin/upload.php3.53 ▲0.3140.12 ▲0.39

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 126 new files
Database: 1 new table, 7 new options
New tables
wp_mazen_redirections
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
optimizme_mazen_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Mazen SEO Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.372.60 ▲0.8747.09 ▲2.56
Dashboard /wp-admin2,198 ▲215.70 ▲0.1295.02 ▼12.6747.48 ▲1.55
Posts /wp-admin/edit.php2,107 ▲101.99 ▲0.0040.97 ▲4.1240.99 ▲6.45
Add New Post /wp-admin/post-new.php1,404 ▼217.70 ▼0.28652.33 ▲2.8647.07 ▼9.46
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.08118.38 ▼23.3951.34 ▼5.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mazen-seo-connector/mazen-seo-connector.php
    • > /wp-content/plugins/mazen-seo-connector/classes/wp/OptimizmeMazenInstall.php
  • 68× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginVisualComposer' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/visual-composer/shortcodes/vc_tta_tour.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFusionBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fusion-builder/shortcodes/fusion_title.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFreshBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fresh-builder/shortcodes/ffb_work.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFreshBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fresh-builder/shortcodes/ffb_testimonials.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFusionBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fusion-builder/shortcodes/fusion_pricing_column.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFreshBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fresh-builder/shortcodes/ffb_download.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginVisualComposer' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/visual-composer/shortcodes/vc_tta_accordion.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginVisualComposer' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/visual-composer/shortcodes/vc_cta.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFusionBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fusion-builder/shortcodes/fusion_login.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Optimizme\\Mazen\\OptimizmeMazenPluginFusionBuilder' not found in wp-content/plugins/mazen-seo-connector/classes/plugins/fusion-builder/shortcodes/fusion_toggle.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

mazen-seo-connector/mazen-seo-connector.php Passed 13 tests

The main file in "Mazen SEO Connector" v. 1.6.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Interaction with MAZEN, the first SEO software that saves your time

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin14,986 lines of code in 117 files:
LanguageFilesBlank linesComment linesLines of code
PHP1071,4112,6597,594
CSS2086,715
PO File2140175315
Markdown2440197
JSON300155
JavaScript14610

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity10.55
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes157
▷ Abstract classes00.00%
▷ Concrete classes157100.00%
▷ Final classes00.00%
Methods455
▷ Static methods7115.60%
▷ Public methods43595.60%
▷ Protected methods163.52%
▷ Private methods40.88%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants27
▷ Global constants27100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-mini.png0.55KB0.42KB▼ 23.21%