83% simple-meta-tag-for-pages-and-post

Code Review | Simple Meta Tags for Pages and Posts

WordPress plugin Simple Meta Tags for Pages and Posts scored83%from 54 tests.

About plugin

  • Plugin page: simple-meta-tag-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Oct 20, 2017
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: lonare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Simple Meta Tags for Pages and Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.20 ▲5.45
Dashboard /wp-admin3.32 ▲0.0247.13 ▼5.65
Posts /wp-admin/edit.php3.37 ▲0.0149.42 ▼5.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.75 ▼15.07
Media Library /wp-admin/upload.php3.24 ▲0.0137.70 ▲5.10
Simple Meta tags /wp-admin/options-general.php?page=simple-meta-tags-for-pages-and-post-options3.2144.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Meta Tags for Pages and Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.68 ▲0.521.51 ▼0.4640.86 ▼3.20
Dashboard /wp-admin2,202 ▲225.64 ▲0.0392.03 ▲1.5138.87 ▼4.42
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0439.07 ▼1.4237.13 ▼2.06
Add New Post /wp-admin/post-new.php6,456 ▲4,92126.10 ▲8.08923.62 ▲302.5769.33 ▲6.69
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.01101.68 ▼20.7845.54 ▼2.13
Simple Meta tags /wp-admin/options-general.php?page=simple-meta-tags-for-pages-and-post-options1,0301.9922.6331.06

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/simple-meta-tag-for-pages-and-post/simple-meta-tags-for-pages-and-post.php:17

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 90% 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 your attention: You can look at the official readme.txt

simple-meta-tag-for-pages-and-post/simple-meta-tags-for-pages-and-post.php 85% from 13 tests

The main file in "Simple Meta Tags for Pages and Posts" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-meta-tag-for-pages-and-post.php" instead of "simple-meta-tags-for-pages-and-post.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected469 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP222237469

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.62
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin