90% horizontal-widget-most-recent-viewed-posts

Code Review | Horizontal Widget Most Recent Viewed Posts

WordPress plugin Horizontal Widget Most Recent Viewed Posts scored90%from 54 tests.

About plugin

  • Plugin page: horizontal-widget...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Dec 15, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: atareao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /958 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Horizontal Widget Most Recent Viewed Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.97 ▼3.57
Dashboard /wp-admin3.31 ▲0.0146.29 ▼3.93
Posts /wp-admin/edit.php3.36 ▲0.0168.01 ▲14.14
Add New Post /wp-admin/post-new.php5.89 ▲0.01107.74 ▼9.39
Media Library /wp-admin/upload.php3.24 ▲0.0158.84 ▲21.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_hwmrvp_recent_posts_with_thumbnails

Browser metrics Passed 4 tests

An overview of browser requirements for Horizontal Widget Most Recent Viewed Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.41 ▼0.971.53 ▼0.4543.42 ▲4.73
Dashboard /wp-admin2,206 ▲175.86 ▲0.71107.60 ▼11.4041.62 ▼2.26
Posts /wp-admin/edit.php2,092 ▲32.14 ▲0.1543.73 ▼21.4743.24 ▲5.31
Add New Post /wp-admin/post-new.php1,411 ▼10317.63 ▼0.24803.17 ▲119.9366.12 ▲14.84
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.05140.54 ▲26.2557.79 ▲9.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_hwmrvp_recent_posts_with_thumbnails

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Configuration of widget.), #2 (Result in the sidebar.)
You can look at the official readme.txt

horizontal-widget-most-recent-viewed-posts/horizontal-widget-most-recent-viewed-posts.php Passed 13 tests

The primary PHP file in "Horizontal Widget Most Recent Viewed Posts" version 0.1.0 is used by WordPress to initiate all plugin functionality
41 characters long description:
A widget to show most recent viewed posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1319103
CSS12929

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.24
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
no_image.png0.77KB0.69KB▼ 10.47%