84% enhanced-category-pages

Code Review | Enhanced Category Pages

WordPress plugin Enhanced Category Pages scored84%from 54 tests.

About plugin

  • Plugin page: enhanced-category...
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Jul 14, 2016
  • Number of updates: 26
  • Update frequency: every 19.8 days
  • Top authors: cip (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

4,000+ active /47,470 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▲2.57ms] Passed 4 tests

A check of server-side resources used by Enhanced Category Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1440.83 ▼0.65
Dashboard /wp-admin3.46 ▲0.1558.86 ▲10.24
Posts /wp-admin/edit.php3.57 ▲0.2152.16 ▲5.74
Add New Post /wp-admin/post-new.php6.04 ▲0.1593.82 ▲4.44
Media Library /wp-admin/upload.php3.38 ▲0.1534.34 ▲0.76

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_ecp_x_category
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Enhanced Category Pages: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.62 ▼1.051.64 ▼0.1441.73 ▼7.61
Dashboard /wp-admin2,205 ▲175.84 ▲0.93107.33 ▼6.7140.61 ▼0.68
Posts /wp-admin/edit.php2,091 ▲22.04 ▲0.0340.64 ▲0.5634.56 ▼2.11
Add New Post /wp-admin/post-new.php1,530 ▼1223.48 ▲5.36655.65 ▲55.2349.58 ▼3.20
Media Library /wp-admin/upload.php1,390 ▲24.21 ▲0.00105.08 ▲8.4845.80 ▲3.00

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function setup_ec_data() on null in wp-content/plugins/enhanced-category-pages/views/ecp_category_description.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: featured image, category, page, categories, enhanced...

enhanced-category-pages/enhanced-category-pages.php Passed 13 tests

Analyzing the main PHP file in "Enhanced Category Pages" version 2.3.0
83 characters long description:
Create custom enhanced pages for categories. Manage category page as a custom post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin623 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP918675541
PO File1181970
CSS13012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.40
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods46
▷ Static methods36.52%
▷ Public methods3576.09%
▷ Protected methods36.52%
▷ Private methods817.39%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
PNG images were not found in this plugin