10% reloadr-for-wp

Code Review | Reloadr for WordPress

WordPress plugin Reloadr for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: reloadr-for-wp
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2013
  • Latest release: Jun 10, 2014
  • Number of updates: 12
  • Update frequency: every 30.3 days
  • Top authors: tecking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,045 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/reloadr-for-wp/reloadr-for-wordpress.php+54
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.18ms] Passed 4 tests

Analyzing server-side resources used by Reloadr for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.88 ▼31.80
Dashboard /wp-admin2.09 ▼1.225.91 ▼41.15
Posts /wp-admin/edit.php2.09 ▼1.275.52 ▼43.16
Add New Post /wp-admin/post-new.php2.09 ▼3.805.66 ▼84.59
Media Library /wp-admin/upload.php2.09 ▼1.146.37 ▼31.46
Reloadr /wp-admin/options-general.php?page=rfw_settings2.095.35

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reloadr for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3814.81 ▲0.231.81 ▼0.1139.26 ▼2.90
Dashboard /wp-admin2,207 ▲225.83 ▼0.0797.28 ▼9.1938.60 ▼4.09
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0044.77 ▲9.5137.04 ▲0.06
Add New Post /wp-admin/post-new.php1,537 ▲1723.21 ▲0.02618.33 ▼65.0457.98 ▲0.52
Media Library /wp-admin/upload.php1,386 ▲44.20 ▼0.0494.52 ▼2.9442.24 ▲0.23
Reloadr /wp-admin/options-general.php?page=rfw_settings8022.0623.4825.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/reloadr-for-wp/reloadr-for-wordpress.php+54
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rfw_settings
    • > Deprecated in wp-content/plugins/reloadr-for-wp/reloadr-for-wordpress.php+74
    Array and string offset access syntax with curly braces is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reloadr-for-wp/reloadr-for-wordpress.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (No need to set the default values.)
You can look at the official readme.txt

reloadr-for-wp/reloadr-for-wordpress.php 85% from 13 tests

The main PHP file in "Reloadr for WordPress" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("reloadr-for-wp.php" instead of "reloadr-for-wordpress.php")
  • Description: The description should be shorter than 140 characters (currently 378 characters long)

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
No dangerous file extensions were detected196 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2245390
JavaScript1102448
Markdown116038
PO File17620

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.73KB6.46KB▼ 44.93%