84% big-boom-rule-of-three

Code Review | Big Boom Rule Of Three

WordPress plugin Big Boom Rule Of Three scored84%from 54 tests.

About plugin

  • Plugin page: big-boom-rule-of-...
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 16, 2015
  • Latest release: May 26, 2022
  • Number of updates: 30
  • Update frequency: every 80.5 days
  • Top authors: bigboomdesign (53.33%)michaelhull (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,412 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.15MB] [CPU: ▼0.46ms] Passed 4 tests

This is a short check of server-side resources used by Big Boom Rule Of Three
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.64 ▼0.32
Dashboard /wp-admin3.46 ▲0.1649.81 ▼1.69
Posts /wp-admin/edit.php3.57 ▲0.2249.75 ▼0.33
Add New Post /wp-admin/post-new.php6.04 ▲0.1693.80 ▲2.15
Media Library /wp-admin/upload.php3.38 ▲0.1636.71 ▲0.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Big Boom Rule Of Three
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲12913.76 ▼0.599.35 ▲7.5844.30 ▲0.14
Dashboard /wp-admin2,208 ▲375.62 ▲0.0586.53 ▼17.4440.44 ▼4.68
Posts /wp-admin/edit.php2,116 ▲132.02 ▼0.0135.35 ▼5.2933.65 ▼3.44
Add New Post /wp-admin/post-new.php1,539 ▲1123.02 ▼0.11618.70 ▼55.9058.76 ▲2.06
Media Library /wp-admin/upload.php1,419 ▲194.26 ▲0.01101.44 ▼9.1944.02 ▼3.08

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ro3_dir() in wp-content/plugins/big-boom-rule-of-three/lib/class-ro3.php:495
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/big-boom-rule-of-three/rule-of-three.php:129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/big-boom-rule-of-three/lib/class-ro3-options.php:533

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: layout builder, rule of three, call to action, responsive

big-boom-rule-of-three/rule-of-three.php 92% from 13 tests

"Big Boom Rule Of Three" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("big-boom-rule-of-three.php" instead of "rule-of-three.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,462 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP3138358689
SVG100565
JavaScript33464205
CSS3033

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity57.00
▷ Minimum class complexity47.00
▷ Maximum class complexity67.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods28100.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin