87% rabbitbuilder-global-central-js-css

Code Review | RabbitBuilder Global Central JS CSS

WordPress plugin RabbitBuilder Global Central JS CSS scored 87% from 54 tests.

About plugin

  • Plugin page: rabbitbuilder-glo...
  • Plugin version: 2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 5.8.1
  • First release: Mar 27, 2019
  • Latest release: Feb 5, 2021
  • Number of updates: 19
  • Update frequency: every 35.9 days
  • Top authors: rabbitbuilder (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 1,696 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼139.35ms] Passed 4 tests

Server-side resources used by RabbitBuilder Global Central JS CSS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.1435.80 ▲1.75
Dashboard /wp-admin3.22 ▲0.1645.27 ▲1.23
Posts /wp-admin/edit.php3.33 ▲0.2248.07 ▲6.96
Add New Post /wp-admin/post-new.php5.58 ▲0.1492.57 ▼558.57
Media Library /wp-admin/upload.php3.16 ▲0.1633.02 ▼1.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 473 new files
Database: 1 new table, no new options
New tables
wp_rabbitbuilder_js_css

Browser metrics Passed 4 tests

RabbitBuilder Global Central JS CSS: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11316.03 ▲0.497.15 ▼3.1845.14 ▼6.68
Dashboard /wp-admin2,987 ▲585.89 ▼0.06137.36 ▼2.88108.46 ▼2.21
Posts /wp-admin/edit.php2,759 ▲232.72 ▲0.0261.22 ▼3.2678.05 ▼2.49
Add New Post /wp-admin/post-new.php1,517 ▼54018.51 ▼0.92354.84 ▼25.64104.43 ▲0.58
Media Library /wp-admin/upload.php1,827 ▲205.03 ▲0.03139.78 ▼11.51117.36 ▼5.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/page-item.php
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/plugin.php
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/page-items.php
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/list-table-items.php
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/activator.php
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/deactivator.php
    • > /wp-content/plugins/rabbitbuilder-global-central-js-css/rabbitbuilder-js-css.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/CompilerException.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Nested.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/RangeException.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/ServerException.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Compact.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Crunched.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Compressed.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Expanded.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Debug.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/ParserException.php:20

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 86% from 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
5 plugin tags: scss preprocessors, elementor addons extension module, custom js, custom css html, custom code

rabbitbuilder-global-central-js-css/rabbitbuilder-js-css.php 69% from 13 tests

"RabbitBuilder Global Central JS CSS" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rabbitbuilder-global-central-js-css.php" instead of "rabbitbuilder-js-css.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 493 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin17,869 lines of code in 454 files:
LanguageFilesBlank linesComment linesLines of code
PHP413,3964,14611,456
JavaScript404457196,142
Markdown3630109
SVG10078
JSON10065
CSS32613
XML1156

PHP code 0% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,349)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 201)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity72.14
▷ Minimum class complexity1.00
▷ Maximum class complexity1,349.00
Average method complexity6.04
▷ Minimum method complexity1.00
▷ Maximum method complexity201.00
Code structure
Namespaces8
Interfaces1
Traits0
Classes34
▷ Abstract classes25.88%
▷ Concrete classes3294.12%
▷ Final classes13.12%
Methods487
▷ Static methods224.52%
▷ Public methods16133.06%
▷ Protected methods30562.63%
▷ Private methods214.31%
Functions30
▷ Named functions1136.67%
▷ Anonymous functions1963.33%
Constants86
▷ Global constants1517.44%
▷ Class constants7182.56%
▷ Public constants71100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin