78% meta-tags-io-generator

Code Review | Meta tags IO generator

WordPress plugin Meta tags IO generator scored78%from 54 tests.

About plugin

  • Plugin page: meta-tags-io-gene...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Dec 20, 2022
  • Number of updates: 9
  • Update frequency: every 1.6 days
  • Top authors: radevican (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Meta tags IO generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.55 ▼0.08
Dashboard /wp-admin3.31 ▲0.0150.16 ▼0.23
Posts /wp-admin/edit.php3.36 ▲0.0147.00 ▼3.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.62 ▼7.69
Media Library /wp-admin/upload.php3.24 ▲0.0137.84 ▼1.30
Meta Tags /wp-admin/options-general.php?page=MTIOG_meta_tags3.2036.33

Server storage [IO: ▲2.04MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_MTIOG_meta_tags
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Meta tags IO generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.35 ▼0.211.64 ▲0.0944.38 ▼0.39
Dashboard /wp-admin2,193 ▲135.57 ▼0.0785.25 ▼12.7439.48 ▲0.52
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0634.35 ▼6.6237.07 ▼1.30
Add New Post /wp-admin/post-new.php1,531 ▲523.18 ▲0.04638.34 ▼48.7653.89 ▼9.79
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0294.07 ▼23.1542.01 ▼6.97
Meta Tags /wp-admin/options-general.php?page=MTIOG_meta_tags1,3172.4446.8780.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=MTIOG_meta_tags
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meta-tags-io-generator/main.php on line 15
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/meta-tags-io-generator/main.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/meta-tags-io-generator/main.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

meta-tags-io-generator/main.php 92% from 13 tests

The main PHP file in "Meta tags IO generator" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("meta-tags-io-generator.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected28,801 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS5256,12218,920
JavaScript52,435909,379
PHP113143502

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin