84% create-meta-tags

Code Review | Create Meta Tags

WordPress plugin Create Meta Tags scored84%from 54 tests.

About plugin

  • Plugin page: create-meta-tags
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Dec 27, 2016
  • Number of updates: 4
  • Update frequency: every 3.8 days
  • Top authors: Keisuke Imura (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,016 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.06MB] [CPU: ▼9.52ms] Passed 4 tests

A check of server-side resources used by Create Meta Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.06 ▼6.48
Dashboard /wp-admin3.37 ▲0.0347.35 ▼19.53
Posts /wp-admin/edit.php3.48 ▲0.1350.74 ▲2.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.29 ▼14.52
Media Library /wp-admin/upload.php3.29 ▲0.0642.03 ▲7.39
Create Meta Tags /wp-admin/options-general.php?page=create-meta-tags3.3039.13

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Create Meta Tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.27 ▲0.111.52 ▼0.1639.32 ▼4.64
Dashboard /wp-admin2,193 ▲165.53 ▼0.1280.77 ▼1.9939.95 ▼0.28
Posts /wp-admin/edit.php2,107 ▲71.98 ▲0.0133.93 ▼1.1130.92 ▼6.34
Add New Post /wp-admin/post-new.php1,683 ▲15722.39 ▼1.42648.93 ▼33.2149.76 ▼0.92
Media Library /wp-admin/upload.php1,404 ▲134.16 ▼0.0996.93 ▼3.3441.78 ▼4.71
Create Meta Tags /wp-admin/options-general.php?page=create-meta-tags1,2353.4560.0726.35

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/create-meta-tags/tests/bootstrap.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/create-meta-tags/views/admin/settings.php:2
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/create-meta-tags/tests/bootstrap.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/create-meta-tags/tests/models/test-MetaModel.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The plugin's settings page (Settings > Create Meta Tags).) image required
You can take inspiration from this readme.txt

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

The entry point to "Create Meta Tags" version 0.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin680 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1070133491
Bourne Shell121798
JavaScript26556
CSS11021
XML10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.83
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods3274.42%
▷ Protected methods00.00%
▷ Private methods1125.58%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants323.08%
▷ Class constants1076.92%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin