79% riloadr-for-wordpress

Code Review | Riloadr for WordPress

WordPress plugin Riloadr for WordPress scored79%from 54 tests.

About plugin

  • Plugin page: riloadr-for-wordp...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.4.2
  • WordPress version: 6.3.1
  • First release: May 3, 2012
  • Latest release: Sep 24, 2012
  • Number of updates: 32
  • Update frequency: every 4.5 days
  • Top authors: OleVik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Riloadr for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▼0.4214.20 ▼26.59
Dashboard /wp-admin3.46 ▲0.1533.98 ▼14.86
Posts /wp-admin/edit.php3.58 ▲0.2238.60 ▼12.00
Add New Post /wp-admin/post-new.php5.71 ▼0.1877.72 ▼12.46
Media Library /wp-admin/upload.php3.46 ▲0.2333.17 ▼3.81
Riloadr /wp-admin/options-general.php?page=riloadr3.4330.72

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
riloadr_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Riloadr for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲16113.60 ▼0.766.37 ▲3.9538.91 ▼14.57
Dashboard /wp-admin2,204 ▲135.76 ▼0.15105.06 ▲5.4840.12 ▼5.60
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0140.79 ▲0.5637.00 ▼0.13
Add New Post /wp-admin/post-new.php1,517 ▲317.65 ▲0.27672.92 ▼38.8958.57 ▲2.86
Media Library /wp-admin/upload.php1,395 ▲104.23 ▲0.0196.93 ▼13.5441.36 ▼5.47
Riloadr /wp-admin/options-general.php?page=riloadr9552.0824.0632.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=riloadr
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
    • > GET request to /wp-admin/options-general.php?page=riloadr
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=riloadr
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=riloadr
    • > Deprecated in wp-content/plugins/riloadr-for-wordpress/scb/Forms.php+528
    Non-static method scbForms::input_with_value() should not be called statically

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/riloadr-for-wordpress/scb/BoxesPage.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/riloadr-for-wordpress/scb/load.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/riloadr-for-wordpress/includes/view.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/riloadr-for-wordpress/scb/Widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: images, responsive, riloadr

riloadr-for-wordpress/riloadr-for-wordpress.php Passed 13 tests

This is the main PHP file of "Riloadr for WordPress" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
93 characters long description:
Riloadr for WordPress is a cross-browser responsive images loader for WordPress 3.0.0 and up.

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
No dangerous file extensions were detected1,605 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP125013711,571
JavaScript101134

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.47
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes320.00%
▷ Concrete classes1280.00%
▷ Final classes00.00%
Methods143
▷ Static methods5739.86%
▷ Public methods12184.62%
▷ Protected methods42.80%
▷ Private methods1812.59%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin