84% archivist

Code Review | Archivist

WordPress plugin Archivist scored 84% from 54 tests.

About plugin

  • Plugin page: archivist
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.6
  • WordPress version: 5.8.1
  • First release: Oct 4, 2010
  • Latest release: Dec 13, 2020
  • Number of updates: 15
  • Update frequency: every 248.3 days
  • Top authors: husobj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,430 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
Install script ran successfully

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

An overview of server-side resources used by Archivist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.17 ▲9.34
Dashboard /wp-admin3.07 ▲0.0148.22 ▲1.54
Posts /wp-admin/edit.php3.12 ▲0.0044.70 ▼5.53
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.37 ▼553.26
Media Library /wp-admin/upload.php3.01 ▲0.0123.01 ▼10.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_archivist_archives

Browser metrics Passed 4 tests

This is an overview of browser requirements for Archivist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.86 ▼0.1713.82 ▲3.1045.07 ▼0.78
Dashboard /wp-admin2,973 ▲425.92 ▼0.11144.02 ▼14.17114.90 ▲0.98
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0061.40 ▼8.6192.14 ▲5.03
Add New Post /wp-admin/post-new.php1,498 ▼218.79 ▲0.28409.30 ▲30.19103.38 ▼11.09
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.01163.24 ▲11.21115.90 ▲0.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_archivist_archives

Smoke tests 75% from 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 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/archivist/archivist.php:41

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: archives, widget, wp_get_archives, weekly, monthly...

archivist/archivist.php 92% from 13 tests

"Archivist" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)

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
No dangerous file extensions were detected96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1422796

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin