83% categorylist

Code Review | Simple Category List

WordPress plugin Simple Category List scored83%from 54 tests.

About plugin

  • Plugin page: categorylist
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2018
  • Latest release: Apr 30, 2019
  • Number of updates: 89
  • Update frequency: every 3.5 days
  • Top authors: nziniwal (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,952 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Simple Category List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.00 ▲5.48
Dashboard /wp-admin3.32 ▲0.0244.85 ▼0.20
Posts /wp-admin/edit.php3.37 ▲0.0146.87 ▼0.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.29 ▼13.30
Media Library /wp-admin/upload.php3.24 ▲0.0134.52 ▲2.68
Category List /wp-admin/options-general.php?page=nzp-setting-admin3.1829.97

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Category List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼0.964.53 ▲2.5444.03 ▼3.43
Dashboard /wp-admin2,210 ▲225.80 ▼0.08111.94 ▲4.3143.66 ▲1.58
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.1635.22 ▲0.0934.52 ▲0.60
Add New Post /wp-admin/post-new.php1,536 ▼623.19 ▲4.68669.48 ▲32.2052.84 ▼5.21
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0496.32 ▼2.8839.90 ▼3.16
Category List /wp-admin/options-general.php?page=nzp-setting-admin7952.0625.0137.93

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: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=nzp-setting-admin
    • > Notice in wp-content/plugins/categorylist/category_list.php+182
    Trying to access array offset on value of type bool

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in categorylist/assets to your readme.txt
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can look at the official readme.txt

categorylist/category_list.php 85% from 13 tests

Analyzing the main PHP file in "Simple Category List" version 1.3
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 ("categorylist.php" instead of "category_list.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin233 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12552158
CSS110075

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.38
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin