83% category-post-boxes

Code Review | Category Post Boxes

WordPress plugin Category Post Boxes scored83%from 54 tests.

About plugin

  • Plugin page: category-post-boxes
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 1, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: xdxd.vs.xdxd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Category Post Boxes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.61 ▼6.93
Dashboard /wp-admin3.32 ▼0.0246.71 ▼12.89
Posts /wp-admin/edit.php3.37 ▲0.0141.83 ▼5.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.39 ▼16.93
Media Library /wp-admin/upload.php3.24 ▲0.0136.49 ▲4.87

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Category Post Boxes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.59 ▼1.005.65 ▲3.7044.80 ▲1.74
Dashboard /wp-admin2,203 ▲185.91 ▲0.03112.60 ▲11.7042.92 ▲2.99
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0236.65 ▼4.0231.66 ▼4.22
Add New Post /wp-admin/post-new.php1,533 ▲122.96 ▼0.14638.00 ▲36.0155.48 ▲2.12
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0295.68 ▼0.6547.72 ▲5.38

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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 no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/category-post-boxes/category-posts-boxes.php

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 90% 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
3 plugin tags: category, posts, list

category-post-boxes/category-posts-boxes.php 77% from 13 tests

This is the main PHP file of "Category Post Boxes" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("category-post-boxes.php" instead of "category-posts-boxes.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2442579
CSS13032

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions3
▷ Named functions3100.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
No PNG files were detected