89% repeater-entries-widget

Code Review | Repeater Entries Widget

WordPress plugin Repeater Entries Widget scored89%from 54 tests.

About plugin

  • Plugin page: repeater-entries-...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Aug 25, 2023
  • Number of updates: 28
  • Update frequency: every 106.0 days
  • Top authors: zealopensource (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,807 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.02MB] [CPU: ▼4.07ms] Passed 4 tests

An overview of server-side resources used by Repeater Entries Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.56 ▼2.18
Dashboard /wp-admin3.33 ▲0.0247.97 ▼0.70
Posts /wp-admin/edit.php3.38 ▲0.0244.41 ▼6.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.31 ▼6.87
Media Library /wp-admin/upload.php3.25 ▲0.0233.36 ▲1.73
Repeater Entries Widget /wp-admin/options-general.php?page=repeater-entries-widget-settings3.2232.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Repeater Entries Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.58 ▼0.745.62 ▲3.8440.40 ▼5.77
Dashboard /wp-admin2,209 ▲245.83 ▲0.92107.30 ▼6.6738.17 ▼0.46
Posts /wp-admin/edit.php2,112 ▲232.24 ▲0.2540.02 ▼1.7234.41 ▲0.36
Add New Post /wp-admin/post-new.php1,531 ▲1718.30 ▲0.68607.51 ▼88.2358.45 ▲4.36
Media Library /wp-admin/upload.php1,407 ▲224.24 ▲0.0998.06 ▼5.8143.45 ▲2.81
Repeater Entries Widget /wp-admin/options-general.php?page=repeater-entries-widget-settings9741.7627.5827.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_zwrew_plugin

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 24 tag instead of maximum 10
The official readme.txt is a good inspiration

repeater-entries-widget/repeater-entries-widget.php 92% from 13 tests

"Repeater Entries Widget" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected536 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP345112479
JavaScript12057

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity11.50
▷ Minimum method complexity1.00
▷ Maximum method complexity23.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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/deleterow.png0.61KB0.74KB0.00%
assets/images/deleteimg.png0.91KB0.69KB▼ 23.60%