84% category-archives-block

Code Review | Category Archives Block

WordPress plugin Category Archives Block scored84%from 54 tests.

About plugin

  • Plugin page: category-archives...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2021
  • Latest release: Jul 30, 2023
  • Number of updates: 24
  • Update frequency: every 36.4 days
  • Top authors: Kometschuh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /3,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Category Archives Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.13 ▲0.66
Dashboard /wp-admin3.32 ▲0.0243.30 ▼6.91
Posts /wp-admin/edit.php3.37 ▲0.0246.54 ▼1.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.08 ▲5.16
Media Library /wp-admin/upload.php3.24 ▲0.0241.74 ▲6.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Category Archives Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.31 ▼1.084.54 ▲2.6644.62 ▼5.73
Dashboard /wp-admin2,209 ▲185.82 ▼0.0896.57 ▼4.0739.43 ▼0.47
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0540.41 ▲1.5637.40 ▲3.71
Add New Post /wp-admin/post-new.php6,426 ▲4,91222.92 ▲5.43875.00 ▲172.7551.31 ▼6.93
Media Library /wp-admin/upload.php1,379 ▼94.17 ▼0.06100.04 ▼11.6440.96 ▼4.07

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please 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 categoryArchivesBlock\\add_filter() in wp-content/plugins/category-archives-block/category-archives-block.php:238

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 Passed 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
6 plugin tags: gutenberg, archives, archive, block, yearly...

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

The primary PHP file in "Category Archives Block" version 1.0.1 is used by WordPress to initiate all plugin functionality
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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected32,163 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON30031,962
PHP24743199
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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