89% wp-archive

Code Review | WP Archive Plugin

WordPress plugin WP Archive Plugin scored89%from 54 tests.

About plugin

  • Plugin page: wp-archive
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jul 1, 2019
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: a6software (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /994 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: ▼11.94MB] [CPU: ▼2,471,896.55ms] Passed 4 tests

Analyzing server-side resources used by WP Archive Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0345.14 ▲2.39
Dashboard /wp-admin3.38 ▼47.8448.03 ▼9,887,567.87
Posts /wp-admin/edit.php3.50 ▲0.0946.09 ▼5.76
Add New Post /wp-admin/post-new.php5.96 ▲0.0389.53 ▼9.07
Media Library /wp-admin/upload.php3.30 ▲0.0335.84 ▼3.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Archive Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.67 ▲0.461.68 ▼0.0943.47 ▲1.44
Dashboard /wp-admin2,198 ▲245.61 ▼0.0181.63 ▼11.6138.30 ▼6.32
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0237.43 ▲1.7634.62 ▼4.65
Add New Post /wp-admin/post-new.php1,531 ▲522.83 ▼0.68663.73 ▼42.1159.62 ▼5.21
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.08107.32 ▼2.3242.49 ▼4.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: archive, shortcode

wp-archive/wp-archive-plugin.php 85% from 13 tests

Analyzing the main PHP file in "WP Archive Plugin" version 1.0.2
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-archive.php" instead of "wp-archive-plugin.php")

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
Everything looks great! No dangerous files found in this plugin2,618 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript66191,0172,063
Markdown11030195
PHP269112187
JSON100162
CSS11011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin