83% ripple-themes-toolset

Code Review | Ripple Themes Toolset

WordPress plugin Ripple Themes Toolset scored83%from 54 tests.

About plugin

  • Plugin page: ripple-themes-too...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Apr 1, 2021
  • Number of updates: 18
  • Update frequency: every 13.3 days
  • Top authors: ripplethemes (83.33%)addonspress (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /7,801 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Ripple Themes Toolset
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.49 ▲1.72
Dashboard /wp-admin3.40 ▲0.0646.19 ▼13.29
Posts /wp-admin/edit.php3.52 ▲0.1644.51 ▲0.98
Add New Post /wp-admin/post-new.php5.98 ▲0.1081.89 ▼11.12
Media Library /wp-admin/upload.php3.32 ▲0.1037.64 ▲1.79

Server storage [IO: ▲35.15MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Try to limit filesystem usage to 25MB (currently using 35.15MB)
Filesystem: 262 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Ripple Themes Toolset
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.101.75 ▼0.1043.99 ▼6.27
Dashboard /wp-admin2,206 ▲185.85 ▲0.95111.37 ▲7.1243.59 ▲4.42
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0733.90 ▼4.6133.97 ▲0.81
Add New Post /wp-admin/post-new.php1,514 ▼517.48 ▼5.58666.63 ▼9.6556.43 ▲6.90
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.28108.34 ▼6.4646.22 ▼2.09

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ripple-themes-toolset/demosArrays/publicblogdemo.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ripple-themes-toolset/demosArrays/dashydemo.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ripple-themes-toolset/demosArrays/dashyblogdemo.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Ripple Themes Toolset)
You can look at the official readme.txt

ripple-themes-toolset/ripplethemes-toolset.php 69% from 13 tests

Analyzing the main PHP file in "Ripple Themes Toolset" version 1.0.7
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ripple-themes-toolset.php" instead of "ripplethemes-toolset.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,415 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP7107421,250
JSON860086
CSS15056
JavaScript15523

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions5
▷ Named functions5100.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
No PNG files were detected