94% category-archives-block

Code Review | Category Archives Block

WordPress plugin Category Archives Block scored 94% from 54 tests.

About plugin

  • Plugin page: category-archives...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 5.9.2
  • First release: Mar 9, 2021
  • Latest release: Jan 18, 2022
  • Number of updates: 19
  • Update frequency: every 16.6 days
  • Top authors: Kometschuh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 618 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Category Archives Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0564.51 ▲12.46
Dashboard /wp-admin3.46 ▲0.0552.95 ▼1.69
Posts /wp-admin/edit.php3.69 ▲0.0544.16 ▲0.05
Add New Post /wp-admin/post-new.php6.92 ▼0.04103.46 ▼1,155.88
Media Library /wp-admin/upload.php3.34 ▲0.0438.77 ▲6.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Category Archives Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.58 ▼0.175.94 ▼0.972.43 ▲0.16
Dashboard /wp-admin2,881 ▲276.21 ▲0.02152.91 ▲1.52162.62 ▼8.03
Posts /wp-admin/edit.php2,657 ▼153.24 ▲0.0167.55 ▼12.42161.18 ▲15.37
Add New Post /wp-admin/post-new.php1,679 ▲4420.56 ▲4.15482.18 ▼12.05168.70 ▲19.83
Media Library /wp-admin/upload.php1,701 ▲35.53 ▲0.06147.14 ▼96.95187.60 ▼48.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function categoryArchivesBlock\\add_action() in wp-content/plugins/category-archives-block/category-archives-block.php:290

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: yearly, category, gutenberg, block, archives...

category-archives-block/category-archives-block.php Passed 13 tests

The main file in "Category Archives Block" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Displays a monthly or yearly archive of posts for one or more specific categories.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected18,652 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON30018,256
PHP24239210
JavaScript42267162
Sass23023
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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
Namespaces1
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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