84% white-rabbit-suite

Code Review | White Rabbit All in One Suite

WordPress plugin White Rabbit All in One Suite scored84%from 54 tests.

About plugin

  • Plugin page: white-rabbit-suite
  • Plugin version: 2.8.5
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2019
  • Latest release: Jul 5, 2022
  • Number of updates: 59
  • Update frequency: every 16.7 days
  • Top authors: whiterabbitsuite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.70MB] [CPU: ▼1.62ms] Passed 4 tests

This is a short check of server-side resources used by White Rabbit All in One Suite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7042.75 ▲4.26
Dashboard /wp-admin3.94 ▲0.6441.87 ▼7.71
Posts /wp-admin/edit.php4.13 ▲0.7749.12 ▼0.19
Add New Post /wp-admin/post-new.php6.62 ▲0.7383.76 ▼2.85
Media Library /wp-admin/upload.php3.94 ▲0.7139.75 ▲6.14

Server storage [IO: ▲0.51MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: 3 new tables, 33 new options
New tables
wp_whiterabbit_import_data
wp_whiterabbit_posts
wp_whiterabbit_abandoned_carts
New WordPress options
wr_plugin_wordpress_data_import_run
wr_plugin_wordpress_site_id
wr_plugin_wordpress_script_token
wr_general_consumer_secret
wr_general_enable_gdpr_marketing
wr_plugin_wordpress_message_log
wr_general_enabled
widget_recent-posts
wr_plugin_wordpress_suite_operation_token
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for White Rabbit All in One Suite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,155 ▼59113.76 ▼0.552.21 ▲0.5834.85 ▼6.21
Dashboard /wp-admin1,527 ▼6615.26 ▼0.6472.94 ▼26.4766.46 ▲23.02
Posts /wp-admin/edit.php2,109 ▲202.22 ▲0.2133.26 ▼5.5032.76 ▲0.12
Add New Post /wp-admin/post-new.php1,542 ▲2823.23 ▲5.57648.70 ▼30.2735.58 ▼18.64
Media Library /wp-admin/upload.php1,404 ▲224.17 ▼0.05100.50 ▲3.8443.62 ▲0.59

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/white-rabbit-suite/script/piwik.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/white-rabbit-suite/script/piwik.php on line 9
    • > PHP Warning
      include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/white-rabbit-suite/script/piwik.php on line 9
    • > PHP Warning
      require_once(WHITERABBIT_PATHconnector/connector.php): failed to open stream: No such file or directory in wp-content/plugins/white-rabbit-suite/connector/client.php on line 10
    • > PHP Warning
      Use of undefined constant WHITERABBIT_PATH - assumed 'WHITERABBIT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/white-rabbit-suite/connector/connector.php on line 23
    • > PHP Warning
      Use of undefined constant WHITERABBIT_PATH - assumed 'WHITERABBIT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/white-rabbit-suite/connector/cron.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/white-rabbit-suite/install/install-posts.php:210
    • > PHP Fatal error
      require_once(): Failed opening required 'WHITERABBIT_PATHconnector/connector.php' (include_path='.:/usr/share/php') in wp-content/plugins/white-rabbit-suite/class-admin.php on line 13
    • > PHP Warning
      include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/white-rabbit-suite/script/piwik.php on line 9
    • > PHP Warning
      require_once(WHITERABBIT_PATHconnector/connector.php): failed to open stream: No such file or directory in wp-content/plugins/white-rabbit-suite/class-admin.php on line 13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: order, seo, post, user

white-rabbit-suite/whiterabbit.php 92% from 13 tests

Analyzing the main PHP file in "White Rabbit All in One Suite" version 2.8.5
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("white-rabbit-suite.php" instead of "whiterabbit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,374 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP137965243,974
PO File1141156330
CSS21053
JavaScript15016
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity55.00
▷ Minimum class complexity1.00
▷ Maximum class complexity336.00
Average method complexity7.86
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1015.87%
▷ Public methods5993.65%
▷ Protected methods00.00%
▷ Private methods46.35%
Functions45
▷ Named functions4497.78%
▷ Anonymous functions12.22%
Constants16
▷ Global constants531.25%
▷ Class constants1168.75%
▷ Public constants11100.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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/white-rabbit-logo-black100x66.png4.62KB3.17KB▼ 31.40%
images/white-rabbit-logo-black.png49.55KB23.32KB▼ 52.94%