83% post-category-height-edit

Code Review | POST CATEGORY HEIGHT EDIT

WordPress plugin POST CATEGORY HEIGHT EDIT scored83%from 54 tests.

About plugin

  • Plugin page: post-category-hei...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1.1
  • WordPress version: 6.3.1
  • First release: Aug 17, 2012
  • Latest release: Feb 27, 2015
  • Number of updates: 19
  • Update frequency: every 48.7 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by POST CATEGORY HEIGHT EDIT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.29 ▼4.16
Dashboard /wp-admin3.31 ▲0.0146.00 ▼1.35
Posts /wp-admin/edit.php3.36 ▲0.0152.83 ▲7.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.26 ▼6.12
Media Library /wp-admin/upload.php3.23 ▲0.0037.64 ▲2.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by POST CATEGORY HEIGHT EDIT
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.28 ▼1.471.76 ▼0.4538.73 ▼12.94
Dashboard /wp-admin2,206 ▲154.87 ▼0.01108.33 ▲6.2837.67 ▼5.70
Posts /wp-admin/edit.php2,089 ▲32.05 ▼0.0040.20 ▲4.4134.99 ▲2.45
Add New Post /wp-admin/post-new.php1,523 ▼1417.53 ▼5.73694.72 ▲15.6656.07 ▲4.82
Media Library /wp-admin/upload.php1,385 ▼04.17 ▼0.04102.59 ▲1.2848.94 ▲5.11

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/post-category-height-edit/post-category-height-edit.php:30

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is a activated plugin.), #2 (This is category stretch.)
The official readme.txt is a good inspiration

post-category-height-edit/post-category-height-edit.php 77% from 13 tests

The main PHP file in "POST CATEGORY HEIGHT EDIT" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: The domain path must begin with a forward slash character ("//")

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 plugin119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1461561
JavaScript114038
PO File12120

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png10.76KB4.66KB▼ 56.68%
screenshot-1.png9.55KB4.09KB▼ 57.19%