67% wp-meta-seo

Code Review | WP Meta SEO

WordPress plugin WP Meta SEO scored67%from 54 tests.

About plugin

  • Plugin page: wp-meta-seo
  • Plugin version: 4.5.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: Nov 8, 2023
  • Number of updates: 364
  • Update frequency: every 8.8 days
  • Top authors: JoomUnited (100%)

Code review

54 tests

User reviews

96 reviews

Install metrics

20,000+ active /1,063,030 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.12MB] [CPU: ▲15.78ms] 75% from 4 tests

A check of server-side resources used by WP Meta SEO
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 22,972.90ms on /wp-admin/admin.php?page=metaseo_dashboard)
PageMemory (MB)CPU Time (ms)
Home /5.91 ▲2.4455.29 ▲14.51
Dashboard /wp-admin6.62 ▲3.3165.22 ▲12.20
Posts /wp-admin/edit.php6.84 ▲3.4868.69 ▲20.02
Add New Post /wp-admin/post-new.php9.65 ▲3.76103.58 ▲16.39
Media Library /wp-admin/upload.php6.49 ▲3.2554.85 ▲20.62
Image editor /wp-admin/admin.php?page=metaseo_image_meta6.4457.00
Category meta /wp-admin/admin.php?page=metaseo_category_meta6.4555.76
Settings /wp-admin/admin.php?page=metaseo_settings7.1556.11
Dashboard /wp-admin/admin.php?page=metaseo_dashboard8.7822,972.90
404 & Redirects /wp-admin/admin.php?page=metaseo_broken_link6.4553.06
Google Analytics /wp-admin/admin.php?page=metaseo_google_analytics6.8656.14
Link editor /wp-admin/admin.php?page=metaseo_link_meta6.6451.75
Better SEO ranking /wp-admin/admin.php?page=metaseo_better_ranking6.4449.57
Sitemap /wp-admin/admin.php?page=metaseo_google_sitemap6.5255.26
Content meta /wp-admin/admin.php?page=metaseo_content_meta6.4859.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 1,847 new files
Database: 2 new tables, 23 new options
New tables
wp_metaseo_images
wp_wpms_links
New WordPress options
metaseo_db_version4.0.0
_yoast_import_notice_flag
_aio_import_notice_flag
wpms_version
wpms_last_update_post
wpms_jureview_installation_time
wpms_jufeedback_version
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Meta SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,701 ▲93915.80 ▲1.422.36 ▲0.5840.68 ▼7.08
Dashboard /wp-admin3,088 ▲9147.50 ▲1.86141.87 ▲52.0985.10 ▲43.22
Posts /wp-admin/edit.php2,471 ▲3712.13 ▲0.1944.40 ▲8.2835.63 ▼1.67
Add New Post /wp-admin/post-new.php2,052 ▲51721.05 ▼4.22824.95 ▲151.8392.33 ▲20.64
Media Library /wp-admin/upload.php1,685 ▲2914.32 ▲0.10102.11 ▼3.1044.12 ▼0.14
Image editor /wp-admin/admin.php?page=metaseo_image_meta1,3252.2634.6831.23
Category meta /wp-admin/admin.php?page=metaseo_category_meta1,3522.6534.4238.18
Settings /wp-admin/admin.php?page=metaseo_settings2,6073.2650.4965.99
Dashboard /wp-admin/admin.php?page=metaseo_dashboard1,8163.1463.7143.11
404 & Redirects /wp-admin/admin.php?page=metaseo_broken_link1,4382.7538.7943.22
Google Analytics /wp-admin/admin.php?page=metaseo_google_analytics1,3054.0242.8048.18
Link editor /wp-admin/admin.php?page=metaseo_link_meta1,3822.3331.1535.13
Better SEO ranking /wp-admin/admin.php?page=metaseo_better_ranking1,3261.9031.5232.27
Sitemap /wp-admin/admin.php?page=metaseo_google_sitemap2,1272.6455.1843.95
Content meta /wp-admin/admin.php?page=metaseo_content_meta1,5722.3039.8036.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wpms_links
    • wp_metaseo_images
  • This plugin did not uninstall successfully, leaving 22 options in the database
    • widget_recent-comments
    • wpms_reflush_rewrite
    • wpms_set_ignore
    • widget_recent-posts
    • wpms_version
    • plugin_to_sync_with
    • metaseo_db_version
    • can_compress_scripts
    • _wpms_dash_last_update
    • metaseo_db_version4.0.4
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 68× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-meta-seo/inc/class.metaseo-category-meta-table.php
    • > /wp-content/plugins/wp-meta-seo/inc/google_analytics/tracking/code-universal.php
    • > /wp-content/plugins/wp-meta-seo/inc/class.metaseo-metabox.php
    • > /wp-content/plugins/wp-meta-seo/inc/install-wizard/content/viewEvironment.php
    • > /wp-content/plugins/wp-meta-seo/inc/class.metaseo-front_end.php
    • > /wp-content/plugins/wp-meta-seo/inc/google_analytics/tracking/universal_disconnect.php
    • > /wp-content/plugins/wp-meta-seo/inc/pages/settings/social.php
    • > /wp-content/plugins/wp-meta-seo/inc/class.metaseo-snippet-preview.php
    • > /wp-content/plugins/wp-meta-seo/wp-meta-seo.php
    • > /wp-content/plugins/wp-meta-seo/inc/pages/better_seo.php
  • 1020× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/google/apiclient-services/src/Google/Service/TagManager/GalleryReference.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE\\ConstantTime\\Base64' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/paragonie/constant_time_encoding/src/Base64DotSlashOrdered.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'WPMSGoogle\\Model' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/google/apiclient-services/src/Analytics/GoalParentLink.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/google/apiclient-services/src/Google/Service/Analytics/Experiment.php:18
    • > PHP Warning
      Class 'WPMSGoogle\\Client' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/src/aliases.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Finder\\Tests\\Iterator\\RealIteratorTestCase' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/symfony/finder/Tests/Iterator/FileTypeFilterIteratorTest.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WPMSGoogle\\Collection' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/google/apiclient-services/src/Analytics/AccountSummary.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WPMSGoogle\\Model' not found in wp-content/plugins/wp-meta-seo/inc/lib/google-api/vendor/google/apiclient-services/src/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6, #7, #8 in wp-meta-seo/assets to your readme.txt
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-meta-seo/wp-meta-seo.php Passed 13 tests

This is the main PHP file of "WP Meta SEO" version 4.5.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin191,963 lines of code in 1,660 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,45319,59668,270146,688
JavaScript563,3792,08317,066
CSS463,35119116,212
Markdown452,10805,877
SVG2032,371
JSON33302,354
Sass213821785
YAML11505254
XSLT1130131
XML690123
Python1222572
Dockerfile18010
make1409
HTML1008
Bourne Shell1203

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.47
▷ Minimum class complexity1.00
▷ Maximum class complexity682.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces119
Interfaces49
Traits14
Classes1,313
▷ Abstract classes22016.76%
▷ Concrete classes1,09383.24%
▷ Final classes474.30%
Methods9,572
▷ Static methods9409.82%
▷ Public methods8,53589.17%
▷ Protected methods4684.89%
▷ Private methods5695.94%
Functions336
▷ Named functions15746.73%
▷ Anonymous functions17953.27%
Constants691
▷ Global constants7110.27%
▷ Class constants62089.73%
▷ Public constants59896.45%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
85 PNG files occupy 2.75MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/dashboard/woocommerce/woocommerce@3x.png35.80KB14.08KB▼ 60.68%
assets/images/dashboard/woocommerce/woocommerce@2x.png21.20KB8.66KB▼ 59.13%
assets/images/facebook/facebook@3x.png1.27KB0.70KB▼ 44.85%
assets/images/dashboard/icon-cache-activation/icon-cache-activation@2x.png0.48KB0.32KB▼ 32.86%
assets/images/icon.png0.98KB0.83KB▼ 15.67%