78% all-meta-tags

Code Review | All Meta Tags

WordPress plugin All Meta Tags scored 78% from 54 tests.

About plugin

  • Plugin page: all-meta-tags
  • Plugin version: 4.47
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 5.9.2
  • First release: Nov 4, 2015
  • Latest release: Jan 24, 2022
  • Number of updates: 109
  • Update frequency: every 20.9 days
  • Top authors: Arthur Gareginyan (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

20,000+ active / 455,453 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.20ms] Passed 4 tests

Analyzing server-side resources used by All Meta Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.83 ▲2.93
Dashboard /wp-admin3.43 ▲0.0332.94 ▲0.15
Posts /wp-admin/edit.php3.66 ▲0.0238.04 ▲1.33
Add New Post /wp-admin/post-new.php6.89 ▼0.0890.98 ▼1,169.38
Media Library /wp-admin/upload.php3.31 ▲0.0224.15 ▼0.90
Meta Tags Inserter /wp-admin/options-general.php?page=all-meta-tags3.4824.08

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, 1 new option
New WordPress options
spacexchimp_p004_service_info

Browser metrics Passed 4 tests

A check of browser resources used by All Meta Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2415.86 ▼0.125.63 ▼0.632.42 ▲0.20
Dashboard /wp-admin2,894 ▲436.10 ▼0.08119.00 ▼18.24153.66 ▼2.49
Posts /wp-admin/edit.php2,696 ▲23.24 ▲0.0163.36 ▼2.43140.90 ▼0.38
Add New Post /wp-admin/post-new.php1,664 ▼4716.47 ▼4.26407.36 ▼59.24157.27 ▲1.07
Media Library /wp-admin/upload.php1,703 ▲55.53 ▼0.00143.50 ▲1.72184.90 ▲3.16
Meta Tags Inserter /wp-admin/options-general.php?page=all-meta-tags4,5373.75105.68173.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • spacexchimp_p004_service_info

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=all-meta-tags
    • > Notice in wp-content/plugins/all-meta-tags/inc/php/functional.php+187
    Array to string conversion

SRP 50% 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
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/all-meta-tags/inc/php/tabs/usage.php
    • > /wp-content/plugins/all-meta-tags/inc/php/functional.php
    • > /wp-content/plugins/all-meta-tags/all-meta-tags.php
    • > /wp-content/plugins/all-meta-tags/inc/php/tabs/faq.php
    • > /wp-content/plugins/all-meta-tags/inc/php/versioning.php
    • > /wp-content/plugins/all-meta-tags/inc/php/controls.php
    • > /wp-content/plugins/all-meta-tags/inc/php/page.php
    • > /wp-content/plugins/all-meta-tags/inc/php/upgrade.php
    • > /wp-content/plugins/all-meta-tags/inc/php/messages.php
    • > /wp-content/plugins/all-meta-tags/inc/php/inline-js.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 57 tag instead of maximum 10
The official readme.txt is a good inspiration

all-meta-tags/all-meta-tags.php 92% from 13 tests

The main PHP file in "All Meta Tags" ver. 4.47 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin18,018 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,0371,0638,689
PO File71,3111,3882,867
SVG2102,677
PHP162533221,381
Markdown386501,298
CSS57195845
HTML2130214
JSON10047

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/spacexchimp-logo.png21.01KB14.98KB▼ 28.69%
inc/img/thanks.png9.03KB9.47KB0.00%