84% same-height

Code Review | Same Height

WordPress plugin Same Height scored84%from 54 tests.

About plugin

  • Plugin page: same-height
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.3.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Jan 24, 2017
  • Number of updates: 33
  • Update frequency: every 14.2 days
  • Top authors: damiarita (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /2,298 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.34ms] Passed 4 tests

A check of server-side resources used by Same Height
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.51 ▼3.29
Dashboard /wp-admin3.32 ▼0.0347.24 ▼16.79
Posts /wp-admin/edit.php3.37 ▲0.0149.21 ▼0.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.57 ▼12.14
Media Library /wp-admin/upload.php3.24 ▲0.0133.75 ▼5.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Same Height
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.66 ▼0.726.21 ▲4.5340.43 ▼1.27
Dashboard /wp-admin2,206 ▲185.88 ▼0.01103.73 ▼5.0238.14 ▼4.41
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0039.02 ▲4.2634.85 ▼2.92
Add New Post /wp-admin/post-new.php1,547 ▲2818.05 ▼4.99637.30 ▼34.7372.36 ▲13.09
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0693.04 ▼16.4642.16 ▼7.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/same-height/same-height.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: style, css, responsive, shortcode, javascript...

same-height/same-height.php 92% from 13 tests

The main PHP script in "Same Height" version 1.4.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 249 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
No dangerous file extensions were detected124 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213485
PHP181539

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin