84% linked-future-posts-widget

Code Review | Linked Future Posts Widget

WordPress plugin Linked Future Posts Widget scored84%from 54 tests.

About plugin

  • Plugin page: linked-future-pos...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: Oct 18, 2016
  • Number of updates: 13
  • Update frequency: every 60.4 days
  • Top authors: rickacc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /769 total downloads

Benchmarks

Plugin footprint 83% from 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.67MB] [CPU: ▼15.84ms] Passed 4 tests

This is a short check of server-side resources used by Linked Future Posts Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.15 ▼1.91
Dashboard /wp-admin3.33 ▲0.0352.29 ▼8.02
Posts /wp-admin/edit.php3.39 ▲0.0351.28 ▲2.40
Add New Post /wp-admin/post-new.php3.12 ▼2.7738.20 ▼54.59
Media Library /wp-admin/upload.php3.26 ▲0.0340.64 ▲1.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Linked Future Posts Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼0.831.57 ▼0.2541.07 ▲1.44
Dashboard /wp-admin2,209 ▲244.88 ▼1.00100.88 ▼5.9941.13 ▼0.53
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0537.28 ▼6.7034.75 ▼2.83
Add New Post /wp-admin/post-new.php1,542 ▲823.13 ▼0.28644.42 ▼15.0250.20 ▼2.05
Media Library /wp-admin/upload.php1,385 ▼34.41 ▲0.25108.10 ▼17.3851.05 ▲0.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_linked-future-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/linked-future-posts-widget/linked-future-posts-widget.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: links, scheduled posts, posts, future posts, scheduled events...

linked-future-posts-widget/linked-future-posts-widget.php Passed 13 tests

The entry point to "Linked Future Posts Widget" version 1.0.0 is a PHP file that has certain tags in its header comment area
73 characters long description:
A widget that displays a list of scheduled posts with links to each post.

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
Success! There were no dangerous files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221487

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin