83% rockon-all-in-one

Code Review | Rockon All in One Plugin

WordPress plugin Rockon All in One Plugin scored83%from 54 tests.

About plugin

  • Plugin page: rockon-all-in-one
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2017
  • Latest release: Sep 22, 2023
  • Number of updates: 24
  • Update frequency: every 100.1 days
  • Top authors: devikas301 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /885 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.85ms] Passed 4 tests

Server-side resources used by Rockon All in One Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.84 ▲0.93
Dashboard /wp-admin3.40 ▲0.0952.68 ▼4.61
Posts /wp-admin/edit.php3.51 ▲0.1548.53 ▲3.96
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.62 ▼23.68
Media Library /wp-admin/upload.php3.32 ▲0.0940.50 ▲8.90
Rockon All in One /wp-admin/admin.php?page=raio_main_menu3.2934.57
Settings & Shortcode /wp-admin/admin.php?page=raio_manage_setting3.2933.92

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rockon All in One Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲11614.77 ▲0.392.04 ▲0.2143.81 ▼1.11
Dashboard /wp-admin2,237 ▲464.89 ▼0.00107.99 ▲3.3644.03 ▲5.47
Posts /wp-admin/edit.php2,123 ▲311.99 ▲0.0340.42 ▼0.0936.03 ▲0.51
Add New Post /wp-admin/post-new.php1,554 ▲1223.20 ▲4.91726.25 ▲104.6053.67 ▲0.45
Media Library /wp-admin/upload.php1,422 ▲344.23 ▲0.0293.36 ▼12.1244.27 ▲0.35
Rockon All in One /wp-admin/admin.php?page=raio_main_menu8612.0222.8446.53
Settings & Shortcode /wp-admin/admin.php?page=raio_manage_setting8792.0325.2540.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rockon-all-in-one/rockon-all-in-one.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rockon-all-in-one/inc/raio_comment_fun.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rockon-all-in-one/inc/raio_function.php:8

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Setting tab (On this section showing the move script footer & disable comment options).), #2 (Breadcrumb tab.), #3 (add Script header & footer option.), #4 (Available short-code.), #5 (Front-end default breadcrumb output.)
The official readme.txt might help

rockon-all-in-one/rockon-all-in-one.php 92% from 13 tests

The primary PHP file in "Rockon All in One Plugin" version 3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected539 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP58659478
CSS29061

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/rockon-vs-hand-logo.png18.44KB10.92KB▼ 40.80%
screenshot-2.png27.18KB10.02KB▼ 63.15%
screenshot-5.png2.23KB1.77KB▼ 20.78%
screenshot-1.png123.84KB39.76KB▼ 67.89%
screenshot-3.png31.21KB11.46KB▼ 63.27%