94% horizontal-full-categories-wordpress-plugin

Code Review | Wordpress Horizontal Full Categories - ByREV

WordPress plugin Wordpress Horizontal Full Categories - ByREV scored 94% from 54 tests.

About plugin

  • Plugin page: horizontal-full-c...
  • Plugin version: 1.2b
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.1
  • WordPress version: 5.8.1
  • First release: Apr 22, 2011
  • Latest release: Mar 1, 2013
  • Number of updates: 6
  • Update frequency: every 113.2 days
  • Top authors: byrev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,186 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼152.57ms] Passed 4 tests

Server-side resources used by Wordpress Horizontal Full Categories - ByREV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0337.10 ▲0.74
Dashboard /wp-admin3.10 ▲0.0543.62 ▼4.05
Posts /wp-admin/edit.php3.15 ▲0.0440.82 ▼8.29
Add New Post /wp-admin/post-new.php5.46 ▲0.0290.24 ▼598.69
Media Library /wp-admin/upload.php3.04 ▲0.0433.75 ▲1.25
ByREV Full Categories /wp-admin/options-general.php?page=byrev-horizontal-full-categories3.0130.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 2 new options
New WordPress options
ByREV_Full_Categories
ByREV_Full_Categories_Cache

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Horizontal Full Categories - ByREV
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11916.27 ▲0.6612.99 ▲4.5045.15 ▼7.80
Dashboard /wp-admin2,975 ▲415.94 ▼0.05151.71 ▲6.25106.55 ▼3.02
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0164.11 ▼1.7583.73 ▼8.52
Add New Post /wp-admin/post-new.php1,686 ▼2,00118.47 ▲3.37408.50 ▼89.70107.47 ▼11.76
Media Library /wp-admin/upload.php1,812 ▲25.00 ▼0.02147.26 ▼5.95112.18 ▼11.94
ByREV Full Categories /wp-admin/options-general.php?page=byrev-horizontal-full-categories1,2692.0860.2075.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/horizontal-full-categories-wordpress-plugin/byrev_horizontal_full_category.php:88

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
5 plugin tags: affiliate, shutterstock, photograpy, ads, api

horizontal-full-categories-wordpress-plugin/byrev_horizontal_full_category.php 85% from 13 tests

The primary PHP file in "Wordpress Horizontal Full Categories - ByREV" version 1.2b is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("horizontal-full-categories-wordpress-plugin.php" instead of "byrev_horizontal_full_category.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.2b")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21612164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin