100% advanced-archive-blocks

Code Review | Advanced Archive Blocks

WordPress plugin Advanced Archive Blocks scored 100% from 54 tests.

About plugin

  • Plugin page: advanced-archive-...
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 5.9.2
  • First release: Jan 5, 2019
  • Latest release: Jan 11, 2019
  • Number of updates: 14
  • Update frequency: every 18.5 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,260 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Advanced Archive Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0353.74 ▲3.36
Dashboard /wp-admin3.44 ▲0.0433.10 ▼0.56
Posts /wp-admin/edit.php3.67 ▲0.0339.63 ▲3.20
Add New Post /wp-admin/post-new.php6.94 ▼0.05100.79 ▼1,145.51
Media Library /wp-admin/upload.php3.32 ▲0.0226.44 ▼5.20

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Archive Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2016.26 ▲0.206.71 ▲0.562.06 ▼0.32
Dashboard /wp-admin2,895 ▲416.08 ▲0.01118.46 ▼18.93158.37 ▼5.19
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0062.43 ▼1.19140.06 ▼2.37
Add New Post /wp-admin/post-new.php1,760 ▲222.26 ▲0.17433.17 ▼42.83158.17 ▼4.71
Media Library /wp-admin/upload.php1,695 ▼35.54 ▼0.02142.71 ▼7.44187.43 ▼9.41

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 completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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: posts, blocks

advanced-archive-blocks/advanced-archive-blocks.php 92% from 13 tests

The main PHP script in "Advanced Archive Blocks" version 0.1.3 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin267 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP33760153
JavaScript4911114

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods125.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected