84% gravitywp-merge-tags

Code Review | GravityWP - Merge Tags

WordPress plugin GravityWP - Merge Tags scored 84% from 54 tests.

About plugin

  • Plugin page: gravitywp-merge-tags
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2017
  • Latest release: Jan 13, 2023
  • Number of updates: 37
  • Update frequency: every 58.2 days
  • Top authors: gravitywp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 21,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by GravityWP - Merge Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.40 ▲8.20
Dashboard /wp-admin3.32 ▲0.0143.57 ▼6.60
Posts /wp-admin/edit.php3.37 ▲0.0143.82 ▼5.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.20 ▼8.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.91 ▲0.80

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GravityWP - Merge Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.75 ▼0.011.73 ▲0.0742.48 ▲0.33
Dashboard /wp-admin2,200 ▲95.83 ▼0.0697.83 ▼3.1539.21 ▼6.38
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0137.16 ▲2.5334.17 ▼0.40
Add New Post /wp-admin/post-new.php1,534 ▲123.30 ▲0.15585.55 ▼134.0957.18 ▼2.41
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0192.83 ▼10.3140.35 ▼6.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/gravitywp-merge-tags/gravitywp-merge-tags.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt might help

gravitywp-merge-tags/gravitywp-merge-tags.php Passed 13 tests

"GravityWP - Merge Tags" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Gravity Forms add-on to list all the merge tags from a specific form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,328 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8143209820
SVG302398
PO File14760110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.50
▷ Minimum class complexity2.00
▷ Maximum class complexity13.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin