10% advanced-most-recent-posts-mod

Code Review | Advanced Most Recent Posts Mod

WordPress plugin Advanced Most Recent Posts Mod scored 10% from 54 tests.

About plugin

  • Plugin page: advanced-most-rec...
  • Plugin version: 1.6.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.2.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2010
  • Latest release: Oct 1, 2012
  • Number of updates: 29
  • Update frequency: every 25.9 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 57,029 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/advanced-most-recent-posts-mod/adv-most-recent.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; yg_recent_posts has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼50.89ms] Passed 4 tests

A check of server-side resources used by Advanced Most Recent Posts Mod
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.244.90 ▼35.95
Dashboard /wp-admin2.24 ▼1.067.20 ▼46.45
Posts /wp-admin/edit.php2.24 ▼1.117.51 ▼38.02
Add New Post /wp-admin/post-new.php2.24 ▼3.647.15 ▼83.14
Media Library /wp-admin/upload.php2.24 ▼0.985.63 ▼29.82

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_advancedrecentposts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Most Recent Posts Mod
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.32 ▼1.072.02 ▲0.0944.34 ▼0.43
Dashboard /wp-admin2,206 ▲185.90 ▲1.04102.45 ▼14.6737.80 ▼8.72
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0340.38 ▲5.1233.86 ▲0.53
Add New Post /wp-admin/post-new.php1,514 ▼2223.35 ▲0.44674.34 ▲18.8963.54 ▲7.14
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.00104.52 ▼3.8946.28 ▼1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/advanced-most-recent-posts-mod/adv-most-recent.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; yg_recent_posts has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_advancedrecentposts
    • widget_theysaidso_widget
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-most-recent-posts-mod/adv-most-recent.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
6 plugin tags: most recent, advanced, recent posts, thumbnail, recent...

advanced-most-recent-posts-mod/adv-most-recent.php 92% from 13 tests

The main PHP script in "Advanced Most Recent Posts Mod" version 1.6.5.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-most-recent-posts-mod.php" instead of "adv-most-recent.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin485 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14027404
PO File1343481

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected