84% auto-social-meta-tags-asmt83

Code Review | Auto-Social Meta Tags ASMT83

WordPress plugin Auto-Social Meta Tags ASMT83 scored84%from 54 tests.

About plugin

  • Plugin page: auto-social-meta-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Aug 4, 2021
  • Number of updates: 8
  • Update frequency: every 41.1 days
  • Top authors: migue0583 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.54ms] Passed 4 tests

A check of server-side resources used by Auto-Social Meta Tags ASMT83
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.10 ▼0.36
Dashboard /wp-admin3.34 ▼0.0149.68 ▼15.53
Posts /wp-admin/edit.php3.39 ▲0.0346.15 ▼4.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0385.90 ▼17.92
Media Library /wp-admin/upload.php3.26 ▲0.0335.71 ▲0.54
Auto-Social Meta Tags /wp-admin/options-general.php?page=asmt833.2335.70

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
asmt83_fbAppId
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Auto-Social Meta Tags ASMT83
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.24 ▼0.111.78 ▼0.0248.11 ▲8.14
Dashboard /wp-admin2,199 ▲225.62 ▲0.0888.37 ▼2.9843.58 ▼1.53
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0739.05 ▼2.0333.62 ▼3.66
Add New Post /wp-admin/post-new.php6,262 ▲4,73618.87 ▼4.65857.89 ▲155.2151.09 ▼1.68
Media Library /wp-admin/upload.php1,398 ▼24.18 ▲0.0596.38 ▼10.2641.05 ▼4.25
Auto-Social Meta Tags /wp-admin/options-general.php?page=asmt839082.1121.9632.63

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • asmt83_fbAppId
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-social-meta-tags-asmt83/social_tags_asmt83.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: meta tags, social network, lightweight

auto-social-meta-tags-asmt83/social_tags_asmt83.php 85% from 13 tests

"Auto-Social Meta Tags ASMT83" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("auto-social-meta-tags-asmt83.php" instead of "social_tags_asmt83.php")
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

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
There were no executable files found in this plugin221 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4269221

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin