84% adjacent-archive-links

Code Review | Adjacent Archive Links

WordPress plugin Adjacent Archive Links scored84%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: 6.3.1
  • 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

20+ active /2,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Adjacent Archive Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.35 ▲0.87
Dashboard /wp-admin3.31 ▲0.0051.04 ▲1.87
Posts /wp-admin/edit.php3.36 ▲0.0052.53 ▲3.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.97 ▼1.36
Media Library /wp-admin/upload.php3.23 ▲0.0032.77 ▲0.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Adjacent Archive Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.514.89 ▲3.0442.67 ▼6.50
Dashboard /wp-admin2,209 ▲215.86 ▲0.9296.99 ▼8.4338.34 ▼1.38
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0339.25 ▲2.4533.66 ▲1.87
Add New Post /wp-admin/post-new.php1,544 ▲1418.11 ▼0.20613.03 ▼49.8351.96 ▲0.91
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0095.20 ▼0.3641.34 ▼2.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • 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
You can take inspiration from this readme.txt

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

The principal PHP file in "Adjacent Archive Links" v. 3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be 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

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued 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%