10% zmseo

Code Review | ZMSEO

WordPress plugin ZMSEO scored10%from 54 tests.

About plugin

  • Plugin page: zmseo
  • Plugin version: 1.14.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2018
  • Latest release: May 28, 2019
  • Number of updates: 24
  • Update frequency: every 13.8 days
  • Top authors: zmseo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /7,571 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/zmseo/zmseo.php+48
    Undefined variable: tuning

Server metrics [RAM: ▼0.91MB] [CPU: ▼36.50ms] Passed 4 tests

An overview of server-side resources used by ZMSEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0449.84 ▲3.05
Dashboard /wp-admin3.03 ▼0.2732.46 ▼33.12
Posts /wp-admin/edit.php3.03 ▼0.3230.95 ▼27.50
Add New Post /wp-admin/post-new.php3.03 ▼2.8630.66 ▼72.90
Media Library /wp-admin/upload.php3.03 ▼0.2028.49 ▼12.48
Настройки /wp-admin/admin.php?page=support3.0332.05
KPI страниц /wp-admin/admin.php?page=zmseo3.0326.72
Каннибалы /wp-admin/admin.php?page=cannibals3.0327.79
Сводка /wp-admin/admin.php?page=report3.0330.33
Точки роста /wp-admin/admin.php?page=pointsup3.0324.58

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: 1 new table, 6 new options
New tables
wp_zmseo_support
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ZMSEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.17 ▼0.481.86 ▼0.0539.15 ▼7.57
Dashboard /wp-admin2,236 ▲625.63 ▼0.0395.02 ▼9.4943.21 ▲0.39
Posts /wp-admin/edit.php2,144 ▲412.02 ▲0.0146.72 ▲7.1637.62 ▲5.22
Add New Post /wp-admin/post-new.php6,510 ▲4,98419.01 ▼3.731,025.69 ▲367.2942.74 ▼11.87
Media Library /wp-admin/upload.php1,444 ▲444.14 ▼0.01134.17 ▲10.6451.65 ▼3.45
Настройки /wp-admin/admin.php?page=support1,1352.0028.1736.17
KPI страниц /wp-admin/admin.php?page=zmseo1,0551.9925.7834.76
Каннибалы /wp-admin/admin.php?page=cannibals8231.9928.1931.95
Сводка /wp-admin/admin.php?page=report8712.0030.6629.26
Точки роста /wp-admin/admin.php?page=pointsup8681.9928.6730.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 54 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pointsup
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=support
    • > Notice in wp-content/plugins/zmseo/support.php+227
    Undefined variable: com
    • > GET request to /wp-admin/admin.php?page=support
    • > Notice in wp-content/plugins/zmseo/support.php+257
    Undefined variable: time_end
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+158
    Undefined variable: mass_f
  • 125 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+273
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+209
    Undefined variable: mass_kpi
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+95
    Undefined offset: 3
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+224
    Undefined offset: 0
  • 39 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+273
    Undefined variable: arr_api
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+243
    Undefined variable: prc
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+248
    Undefined variable: mass_12m
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+209
    Undefined index: /index.php/sample-page/
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zmseo
    • > Notice in wp-content/plugins/zmseo/pages.php+209
    Undefined index: /index.php/2023/09/01/hello-world/
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+47
    Undefined variable: arr_years
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+47
    Undefined offset: 2023
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+48
    Undefined variable: all_art
    • > GET request to /wp-admin/admin.php?page=report
    • > Notice in wp-content/plugins/zmseo/report.php+92
    Undefined offset: 2
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pointsup
    • > Notice in wp-content/plugins/zmseo/pointsup.php+136
    Undefined variable: mass_pup
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pointsup
    • > Warning in wp-content/plugins/zmseo/pointsup.php+136
    sizeof(): Parameter must be an array or an object that implements Countable

SRP 50% 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
The following issues need your attention
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to get property 'desc' of non-object in wp-content/plugins/zmseo/sup_pages/links.php on line 7
    • > PHP Notice
      Trying to get property 'h1' of non-object in wp-content/plugins/zmseo/sup_pages/links.php on line 8
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/zmseo/sup_pages/links.php on line 12
    • > PHP Notice
      Undefined index: edit_tag in wp-content/plugins/zmseo/sup_pages/tags.php on line 31
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/zmseo/sup_pages/links.php on line 6
    • > PHP Notice
      Undefined variable: tag in wp-content/plugins/zmseo/sup_pages/tags.php on line 80
    • > PHP Notice
      Undefined index: add_tag in wp-content/plugins/zmseo/sup_pages/tags.php on line 5
    • > PHP Notice
      Trying to get property 'title' of non-object in wp-content/plugins/zmseo/sup_pages/links.php on line 6
    • > PHP Notice
      Undefined variable: tag in wp-content/plugins/zmseo/sup_pages/tags.php on line 93
    • > PHP Notice
      Trying to get property 'title' of non-object in wp-content/plugins/zmseo/sup_pages/links.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: yandex, google, seo, content analysis, zmseo

zmseo/zmseo.php Passed 13 tests

This is the main PHP file of "ZMSEO" version 1.14.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
SEO аналитика запросов и метрики вашего сайта

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 detected2,641 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP134091842,193
CSS15421329
JavaScript12540119

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/links.png1.20KB0.82KB▼ 31.84%
images/black_kpi.png1.65KB0.88KB▼ 46.39%
images/up.png1.60KB0.84KB▼ 47.43%
images/yellow_min.png1.45KB0.69KB▼ 51.96%
images/black_min.png1.12KB0.49KB▼ 55.94%