83% ay-term-meta

Code Review | AY Term Meta

WordPress plugin AY Term Meta scored 83% from 54 tests.

About plugin

  • Plugin page: ay-term-meta
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 4
  • Update frequency: every 64.5 days
  • Top authors: GastonPowered (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,062 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 gracefully, with no errors

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

This is a short check of server-side resources used by AY Term Meta
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0159.30 ▲10.33
Dashboard /wp-admin3.31 ▲0.0156.87 ▼0.77
Posts /wp-admin/edit.php3.36 ▲0.0159.24 ▲5.73
Add New Post /wp-admin/post-new.php5.89 ▲0.01105.09 ▲4.72
Media Library /wp-admin/upload.php3.23 ▲0.0143.71 ▲3.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for AY Term Meta
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2513.25 ▼0.042.02 ▼0.1643.10 ▲1.61
Dashboard /wp-admin2,206 ▼06.06 ▲0.18106.54 ▲8.4842.13 ▲5.06
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0039.90 ▲5.8135.67 ▲2.88
Add New Post /wp-admin/post-new.php1,533 ▲1923.48 ▲5.87675.79 ▼11.8052.18 ▼4.53
Media Library /wp-admin/upload.php1,385 ▼34.19 ▲0.00103.73 ▲2.9346.79 ▲1.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ay-term-meta/ay-termmeta.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The add screen), #2 (The edit screen)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

ay-term-meta/ay-termmeta.php 92% from 13 tests

The main PHP file in "AY Term Meta" ver. 0.9.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: It is recommended to name the main PHP file as the plugin slug ("ay-term-meta.php" instead of "ay-termmeta.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin312 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP160126176
Markdown130073
JavaScript117063

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png94.48KB28.37KB▼ 69.97%
screenshot-2.png123.27KB36.29KB▼ 70.56%