94% adjacent-archive-links

Code Review | Adjacent Archive Links

WordPress plugin Adjacent Archive Links scored 94% from 54 tests.

About plugin

  • Plugin page: adjacent-archive-...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 5.9.2
  • First release: Nov 26, 2012
  • Latest release: May 18, 2015
  • Number of updates: 13
  • Update frequency: every 69.8 days
  • Top authors: justincwatt (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,833 total downloads

Benchmarks

Plugin footprint Passed 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: ▼293.05ms] Passed 4 tests

A check of server-side resources used by Adjacent Archive Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0258.92 ▲9.22
Dashboard /wp-admin3.43 ▲0.0234.41 ▲0.51
Posts /wp-admin/edit.php3.66 ▲0.0240.03 ▼3.92
Add New Post /wp-admin/post-new.php6.90 ▼0.0697.12 ▼1,164.27
Media Library /wp-admin/upload.php3.31 ▲0.0124.05 ▼4.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adjacent Archive Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.16 ▲0.436.22 ▲0.312.27 ▼0.00
Dashboard /wp-admin2,892 ▲315.99 ▼0.16121.83 ▼10.90157.09 ▲0.63
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0262.11 ▼1.94135.28 ▼4.47
Add New Post /wp-admin/post-new.php1,717 ▲5621.25 ▲4.20429.67 ▲22.80160.23 ▲1.96
Media Library /wp-admin/upload.php1,692 ▼35.50 ▼0.04144.99 ▲4.64186.32 ▼6.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adjacent-archive-links/adjacent-archive-links.php:121

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (This is an example of how it looks on a date archive page customized to only show post titles in chronological order.) image missing
The official readme.txt might help

adjacent-archive-links/adjacent-archive-links.php 92% from 13 tests

Analyzing the main PHP file in "Adjacent Archive Links" version 3.0
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1262867
PO File181334

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.15KB5.41KB▼ 55.45%