90% advanced-archive-blocks

Code Review | Advanced Archive Blocks

WordPress plugin Advanced Archive Blocks scored90%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: 6.3.1
  • 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,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Advanced Archive Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.29 ▼3.28
Dashboard /wp-admin3.31 ▼0.0349.01 ▼15.70
Posts /wp-admin/edit.php3.36 ▲0.0151.97 ▲4.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.06 ▼8.70
Media Library /wp-admin/upload.php3.23 ▲0.0136.36 ▲1.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Archive Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.26 ▼1.112.10 ▲0.1842.57 ▼2.36
Dashboard /wp-admin2,221 ▲215.83 ▼0.04113.15 ▲4.5441.92 ▼0.16
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0242.40 ▲6.6937.99 ▲3.42
Add New Post /wp-admin/post-new.php6,204 ▲4,66026.28 ▲2.93899.92 ▲269.3756.19 ▲2.88
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0599.22 ▼2.4945.90 ▲0.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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: blocks, posts

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
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected267 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP33760153
JavaScript4911114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected