89% recent-posts-slide-in-and-call-to-action

Code Review | Recent Posts Slide In and Call to Action

WordPress plugin Recent Posts Slide In and Call to Action scored89%from 54 tests.

About plugin

  • Plugin page: recent-posts-slid...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2018
  • Latest release: Jun 11, 2021
  • Number of updates: 11
  • Update frequency: every 111.8 days
  • Top authors: absikandar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /674 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Recent Posts Slide In and Call to Action
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.55 ▼6.36
Dashboard /wp-admin3.37 ▲0.0745.73 ▼4.63
Posts /wp-admin/edit.php3.49 ▲0.1347.11 ▲1.58
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.90 ▼0.50
Media Library /wp-admin/upload.php3.29 ▲0.0735.58 ▲1.47
Recent Posts Slide-In and CTA /wp-admin/options-general.php?page=rpsi-cta-options3.3335.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Recent Posts Slide In and Call to Action: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.71 ▼0.941.57 ▼0.1439.86 ▼2.92
Dashboard /wp-admin2,219 ▲285.84 ▼0.06104.59 ▲3.3138.18 ▼2.59
Posts /wp-admin/edit.php2,107 ▲182.08 ▲0.0243.39 ▲2.5537.70 ▲3.75
Add New Post /wp-admin/post-new.php1,555 ▲4118.52 ▲1.09640.45 ▼40.7954.98 ▲2.45
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0298.24 ▲1.8141.38 ▼4.22
Recent Posts Slide-In and CTA /wp-admin/options-general.php?page=rpsi-cta-options1,7727.37157.5580.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: Please take inspiration from this readme.txt

recent-posts-slide-in-and-call-to-action/recent-posts-slide-in-and-cta.php 85% from 13 tests

The main PHP file in "Recent Posts Slide In and Call to Action" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recent-posts-slide-in-and-call-to-action.php" instead of "recent-posts-slide-in-and-cta.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin398 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions22100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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