84% recent-posts-with-excerpts

Code Review | Recent Posts with Excerpts

WordPress plugin Recent Posts with Excerpts scored 84% from 54 tests.

About plugin

  • Plugin page: recent-posts-with...
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.8
  • WordPress version: 6.3.1
  • First release: Jul 25, 2009
  • Latest release: Jun 30, 2016
  • Number of updates: 44
  • Update frequency: every 66.5 days
  • Top authors: sillybean (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 46,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.31ms] Passed 4 tests

Analyzing server-side resources used by Recent Posts with Excerpts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.88 ▲3.31
Dashboard /wp-admin3.37 ▲0.0646.35 ▼4.17
Posts /wp-admin/edit.php3.42 ▲0.0648.74 ▼1.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.45 ▲0.95
Media Library /wp-admin/upload.php3.29 ▲0.0637.14 ▼0.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recentpostswithexcerpts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Recent Posts with Excerpts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.14 ▼1.555.13 ▲3.3143.25 ▲3.29
Dashboard /wp-admin2,206 ▲215.86 ▲0.99105.32 ▼0.9641.83 ▼0.82
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0538.09 ▼1.9334.68 ▼2.28
Add New Post /wp-admin/post-new.php1,514 ▼2017.76 ▼5.36682.36 ▼7.2248.77 ▼11.44
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0194.94 ▼10.1341.74 ▼1.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recentpostswithexcerpts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/recent-posts-with-excerpts/recent-with-excerpts-widgets.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: widgets, excerpts

recent-posts-with-excerpts/recent-with-excerpts-widgets.php 85% from 13 tests

The main file in "Recent Posts with Excerpts" v. 2.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recent-posts-with-excerpts.php" instead of "recent-with-excerpts-widgets.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
There were no executable files found in this plugin273 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13831210
PO File1252762
Markdown1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin