89% all-posts-archive-page

Code Review | Binge Reading Archive Page Template

WordPress plugin Binge Reading Archive Page Template scored 89% from 53 tests.

About plugin

  • Plugin page: all-posts-archive...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 23, 2016
  • Latest release: Oct 25, 2016
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: eric1985 (77.78%)Otto42 (33.33%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 672 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Binge Reading Archive Page Template
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.07 ▲10.20
Dashboard /wp-admin3.06 ▲0.0140.99 ▼4.39
Posts /wp-admin/edit.php3.12 ▲0.0144.90 ▲2.15
Add New Post /wp-admin/post-new.php5.43 ▼0.0087.46 ▼1,181.95
Media Library /wp-admin/upload.php3.01 ▲0.0031.37 ▼8.00
Binge Reading Archive Page /wp-admin/options-general.php?page=all-posts-archive-page2.9826.41

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Binge Reading Archive Page Template
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,654 ▲4815.92 ▲0.508.92 ▲0.1040.41 ▼11.59
Dashboard /wp-admin2,932 ▲825.96 ▲0.18138.07 ▲6.37105.28 ▲3.06
Posts /wp-admin/edit.php2,711 ▲52.70 ▲0.0164.73 ▼4.1193.60 ▲7.91
Add New Post /wp-admin/post-new.php1,656 ▲17518.78 ▲0.33354.30 ▲3.01106.20 ▼1.28
Media Library /wp-admin/upload.php1,780 ▲84.98 ▼0.02153.15 ▲7.16113.09 ▲1.97
Binge Reading Archive Page /wp-admin/options-general.php?page=all-posts-archive-page1,2926.01147.3395.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/all-posts-archive-page/all-posts-archive-page.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/all-posts-archive-page/binge-reading.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: genesis, archive page, archive, page template

all-posts-archive-page/all-posts-archive-page.php Passed 13 tests

The main PHP script in "Binge Reading Archive Page Template" version 0.3 is automatically included on every request by WordPress
121 characters long description:
A plugin to create an "all posts since this site started by month" page. Optimized for sites using the Genesis Framework.

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 plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin