78% fix-category-count

Code Review | Fix Category Count

WordPress plugin Fix Category Count scored78%from 54 tests.

About plugin

  • Plugin page: fix-category-count
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: abda53 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /2,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.50ms] Passed 4 tests

This is a short check of server-side resources used by Fix Category Count
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0145.02 ▲1.91
Dashboard /wp-admin3.58 ▲0.0251.62 ▲0.45
Posts /wp-admin/edit.php3.70 ▲0.0251.68 ▼0.20
Add New Post /wp-admin/post-new.php6.16 ▲0.0294.57 ▼10.27
Media Library /wp-admin/upload.php3.51 ▲0.0237.62 ▼3.96
Fix Category Count /wp-admin/tools.php?page=fix_category_count3.4738.83

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Fix Category Count: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.75 ▲0.371.80 ▼0.0445.22 ▲2.84
Dashboard /wp-admin2,200 ▲205.67 ▲0.0696.20 ▲2.6444.24 ▲0.42
Posts /wp-admin/edit.php2,105 ▲52.01 ▼0.0441.60 ▲4.7936.41 ▼0.90
Add New Post /wp-admin/post-new.php1,550 ▲1823.29 ▲0.01623.92 ▼41.1652.84 ▼8.88
Media Library /wp-admin/upload.php1,408 ▲54.21 ▲0.0199.74 ▼1.7840.40 ▼1.30
Fix Category Count /wp-admin/tools.php?page=fix_category_count6861.536.6615.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • recovery_mode_email_last_sent
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=fix_category_count
    • > Parse error in wp-content/plugins/fix-category-count/inc/fix_category_count_admin_view.php+68
    syntax error, unexpected end of file

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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fix-category-count/inc/fix_category_count_admin_view.php on line 68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fix-category-count/fix_category_count.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: category, fix, repair, count

fix-category-count/fix_category_count.php 92% from 13 tests

The main PHP script in "Fix Category Count" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fix-category-count.php" instead of "fix_category_count.php")

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
There were no executable files found in this plugin132 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33022132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods240.00%
▷ Protected methods00.00%
▷ Private methods360.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin