72% recent-posts-ultimate

Code Review | Recent Posts Ultimate

WordPress plugin Recent Posts Ultimate scored72%from 54 tests.

About plugin

  • Plugin page: recent-posts-ulti...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 11
  • Update frequency: every 102.8 days
  • Top authors: BearlyDoug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Recent Posts Ultimate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▼4.31
Dashboard /wp-admin3.31 ▲0.0145.98 ▼5.15
Posts /wp-admin/edit.php3.37 ▲0.0146.05 ▼4.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.02 ▲6.06
Media Library /wp-admin/upload.php3.24 ▲0.0137.72 ▼1.53
BD Plugins /wp-admin/admin.php?page=bearlydoug3.2132.83
Recent Posts Ultimate /wp-admin/admin.php?page=rpu3.2834.40

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Recent Posts Ultimate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6214.35 ▲0.181.74 ▲0.1343.48 ▼1.10
Dashboard /wp-admin2,230 ▲535.70 ▲0.1480.65 ▼17.3691.30 ▲48.88
Posts /wp-admin/edit.php2,135 ▲351.99 ▲0.0537.98 ▼2.2835.90 ▲0.06
Add New Post /wp-admin/post-new.php1,707 ▲18122.19 ▼0.71708.89 ▲48.7050.63 ▲0.26
Media Library /wp-admin/upload.php1,432 ▲354.23 ▲0.0194.46 ▼17.9374.24 ▲26.81
BD Plugins /wp-admin/admin.php?page=bearlydoug1,4252.0126.1738.05
Recent Posts Ultimate /wp-admin/admin.php?page=rpu2,1501.7632.1893.73

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/recent-posts-ultimate/images/index.php
    • > /wp-content/plugins/recent-posts-ultimate/includes/index.php
    • > /wp-content/plugins/recent-posts-ultimate/rpu.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-posts-ultimate/functions-bd.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/recent-posts-ultimate/includes/BDPluginsNews.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=bearlydoug
    • > Network (severe)
    wp-content/plugins/recent-posts-ultimate/images/gutenborg.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=bearlydoug
    • > Network (severe)
    wp-content/plugins/recent-posts-ultimate/images/disable-gutenberg-plugin-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: categories, custom post types, recent posts, excerpts, posts...

recent-posts-ultimate/rpu.php 85% from 13 tests

The entry point to "Recent Posts Ultimate" version 1.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("recent-posts-ultimate.php" instead of "rpu.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 315 characters long)

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
No dangerous file extensions were detected1,411 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP597308709
CSS27937458
JavaScript2213244

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/vimeo.png0.55KB0.67KB0.00%