84% wp-siren-recent-posts-by-category

Code Review | WPSIREN Recent Posts By Category

WordPress plugin WPSIREN Recent Posts By Category scored 84% from 54 tests.

About plugin

  • Plugin page: wp-siren-recent-p...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2012
  • Latest release: Apr 10, 2013
  • Number of updates: 16
  • Update frequency: every 7.8 days
  • Top authors: wpsiren (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 13,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.81ms] Passed 4 tests

An overview of server-side resources used by WPSIREN Recent Posts By Category
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.50 ▼13.00
Dashboard /wp-admin3.39 ▲0.0754.65 ▼0.20
Posts /wp-admin/edit.php3.44 ▲0.0750.13 ▼10.17
Add New Post /wp-admin/post-new.php5.97 ▲0.07101.36 ▲1.87
Media Library /wp-admin/upload.php3.31 ▲0.0743.31 ▼3.88

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

Filesystem and database footprint
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_recent-posts
can_compress_scripts
widget_rpbc
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPSIREN Recent Posts By Category
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲2713.23 ▲0.104.75 ▲2.4043.50 ▼5.53
Dashboard /wp-admin2,203 ▼35.83 ▲0.0696.60 ▼0.6037.83 ▼8.48
Posts /wp-admin/edit.php2,089 ▼31.99 ▲0.0154.67 ▲14.5043.31 ▲7.89
Add New Post /wp-admin/post-new.php1,546 ▲1318.13 ▼4.90631.62 ▼30.6185.85 ▲29.04
Media Library /wp-admin/upload.php1,391 ▲64.14 ▼0.01114.56 ▲4.5546.02 ▲0.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_rpbc
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-siren-recent-posts-by-category/wpsiren-recent-posts-by-category.php:21

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Widget Options Panel) image required
You can look at the official readme.txt

wp-siren-recent-posts-by-category/wpsiren-recent-posts-by-category.php 92% from 13 tests

"WPSIREN Recent Posts By Category" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-siren-recent-posts-by-category.php" instead of "wpsiren-recent-posts-by-category.php")

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 detected369 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112346301
CSS129068

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity9.75
▷ Minimum method complexity1.00
▷ Maximum method complexity21.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%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/thumbnail_default.png7.13KB2.85KB▼ 59.96%
screenshot-1.png39.78KB13.31KB▼ 66.53%