90% fixed-adjacent-post

Code Review | Fixed Adjacent Post

WordPress plugin Fixed Adjacent Post scored90%from 54 tests.

About plugin

  • Plugin page: fixed-adjacent-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 25, 2014
  • Latest release: Aug 7, 2014
  • Number of updates: 12
  • Update frequency: every 3.6 days
  • Top authors: ixkaito (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,608 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: ▲0.04MB] [CPU: ▼7.78ms] Passed 4 tests

A check of server-side resources used by Fixed Adjacent Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.39 ▲0.40
Dashboard /wp-admin3.35 ▲0.0543.45 ▼3.33
Posts /wp-admin/edit.php3.40 ▲0.0444.33 ▼5.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.06 ▼16.52
Media Library /wp-admin/upload.php3.27 ▲0.0432.78 ▼5.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fixed Adjacent Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.13 ▼0.521.89 ▲0.1544.70 ▲1.35
Dashboard /wp-admin2,195 ▲185.54 ▼0.1282.50 ▼7.2435.45 ▼8.92
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0139.78 ▼1.1236.95 ▼0.89
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▲0.09713.60 ▲34.1455.66 ▼13.35
Media Library /wp-admin/upload.php1,400 ▲34.28 ▲0.1494.35 ▼6.3441.33 ▼7.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

fixed-adjacent-post/fixed-adjacent-post.php Passed 13 tests

The main PHP file in "Fixed Adjacent Post" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Fix the not-excluding terms bug of get_adjacent_post().

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP148230137

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin