84% categorized

Code Review | Categorized

WordPress plugin Categorized scored84%from 54 tests.

About plugin

  • Plugin page: categorized
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: May 11, 2013
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: markjaquith (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /2,108 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.73ms] Passed 4 tests

An overview of server-side resources used by Categorized
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.04 ▼0.76
Dashboard /wp-admin3.31 ▲0.0049.73 ▼3.92
Posts /wp-admin/edit.php3.36 ▲0.0046.11 ▼0.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.93 ▼12.87
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▼1.25

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Categorized: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.101.97 ▲0.2445.38 ▲1.77
Dashboard /wp-admin2,198 ▲185.58 ▼0.0890.07 ▼1.9538.80 ▼1.29
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0237.45 ▼6.9733.17 ▼5.23
Add New Post /wp-admin/post-new.php1,530 ▲123.11 ▼0.01663.78 ▲5.8748.32 ▼5.43
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0395.31 ▼5.4644.33 ▼3.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
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 add_action() in wp-content/plugins/categorized/categorized.php:36

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: category, admin

categorized/categorized.php 92% from 13 tests

The entry point to "Categorized" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin45 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CoffeeScript13622
PHP1112322
JavaScript1011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin