84% wp-term-metadata

Code Review | WP Term Metadata

WordPress plugin WP Term Metadata scored84%from 54 tests.

About plugin

  • Plugin page: wp-term-metadata
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2014
  • Latest release: Jun 19, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: golovanov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

This is a short check of server-side resources used by WP Term Metadata
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0341.78 ▼2.94
Dashboard /wp-admin3.59 ▲0.0349.48 ▼1.92
Posts /wp-admin/edit.php3.71 ▲0.0353.33 ▲0.62
Add New Post /wp-admin/post-new.php6.18 ▲0.0389.76 ▼5.95
Media Library /wp-admin/upload.php3.52 ▲0.0340.53 ▼0.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Term Metadata
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.261.70 ▼0.2740.45 ▼2.53
Dashboard /wp-admin2,195 ▲185.65 ▼0.0495.71 ▲2.2142.87 ▲0.78
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0340.33 ▲3.4035.48 ▼1.27
Add New Post /wp-admin/post-new.php1,545 ▲523.26 ▲0.13651.71 ▲7.4764.43 ▲5.75
Media Library /wp-admin/upload.php1,403 ▲64.27 ▲0.04103.51 ▲2.8643.56 ▼1.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-term-metadata/wp-term-metadata.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: metadata, taxonomy, term, meta

wp-term-metadata/wp-term-metadata.php Passed 13 tests

Analyzing the main PHP file in "WP Term Metadata" version 0.2
64 characters long description:
WP Term Metadata Plugin for retrieving and manipulating metadata

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin135 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP130157135

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Constants0
▷ Global constants00.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