84% matchheight

Code Review | matchHeight

WordPress plugin matchHeight scored84%from 54 tests.

About plugin

  • Plugin page: matchheight
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 10, 2015
  • Latest release: Sep 25, 2021
  • Number of updates: 15
  • Update frequency: every 143.4 days
  • Top authors: neilgee (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

4,000+ active /12,344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by matchHeight
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.10 ▼0.81
Dashboard /wp-admin3.32 ▲0.0147.57 ▼4.71
Posts /wp-admin/edit.php3.37 ▲0.0145.51 ▼3.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.14 ▲1.09
Media Library /wp-admin/upload.php3.24 ▲0.0135.00 ▼0.06
matchHeight /wp-admin/options-general.php?page=matchheight3.2332.73

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for matchHeight
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.58 ▼0.792.21 ▲0.4341.09 ▼3.70
Dashboard /wp-admin2,210 ▲424.89 ▲0.01110.96 ▼21.1539.78 ▼5.46
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0538.59 ▼0.8734.83 ▲2.40
Add New Post /wp-admin/post-new.php1,527 ▼923.08 ▼0.13643.27 ▼66.7250.60 ▼8.13
Media Library /wp-admin/upload.php1,383 ▼54.29 ▲0.0997.46 ▼1.8542.76 ▼2.18
matchHeight /wp-admin/options-general.php?page=matchheight7822.0625.3430.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/matchheight/inc/options-page-wrapper.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === matchheight === )
Please take inspiration from this readme.txt

matchheight/matchheight.php Passed 13 tests

"matchHeight" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Adds the matchHeight jQuery plugin which makes the height of all selected elements exactly equal

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
No dangerous file extensions were detected100 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3586390
JavaScript20510

PHP code Passed 2 tests

This is a very shot review of 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.19
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
Namespaces1
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%
Functions8
▷ Named functions8100.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
No PNG images were found in this plugin