68% wp-revenue-booster

Code Review | WP Revenue Booster

WordPress plugin WP Revenue Booster scored68%from 54 tests.

About plugin

  • Plugin page: wp-revenue-booster
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: May 18, 2018
  • Latest release: May 19, 2018
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: supercleanse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /768 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.88ms] Passed 4 tests

Analyzing server-side resources used by WP Revenue Booster
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.20 ▲1.06
Dashboard /wp-admin3.48 ▲0.1353.57 ▼5.40
Posts /wp-admin/edit.php3.51 ▲0.1556.40 ▲7.89
Add New Post /wp-admin/post-new.php6.01 ▲0.1399.08 ▼0.02
Media Library /wp-admin/upload.php3.33 ▲0.1147.81 ▲14.03
Segments /wp-admin/edit.php?post_type=mprb-segment3.6351.26
Options /wp-admin/admin.php?page=wprb-options3.3540.08

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: 81 new files
Database: 1 new table, 6 new options
New tables
wp_wprb_customizations
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Revenue Booster
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.77 ▼0.619.54 ▲7.6139.93 ▼0.28
Dashboard /wp-admin2,235 ▲434.98 ▲0.02109.30 ▼1.1840.94 ▼4.34
Posts /wp-admin/edit.php2,127 ▲382.04 ▼0.0040.25 ▲5.9436.57 ▲4.22
Add New Post /wp-admin/post-new.php1,549 ▲3523.28 ▲5.76630.19 ▼47.1835.39 ▼12.33
Media Library /wp-admin/upload.php1,427 ▲394.15 ▼0.03100.86 ▼6.7847.60 ▼1.29
Segments /wp-admin/edit.php?post_type=mprb-segment1,0982.4031.8131.18
Options /wp-admin/admin.php?page=wprb-options8302.1725.4125.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_wprb_customizations
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 35× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-revenue-booster/app/lib/class-config.php
    • > /wp-content/plugins/wp-revenue-booster/app/lib/class-user-data.php
    • > /wp-content/plugins/wp-revenue-booster/app/lib/activation.php
    • > /wp-content/plugins/wp-revenue-booster/app/views/index.php
    • > /wp-content/plugins/wp-revenue-booster/app/lib/class-utils.php
    • > /wp-content/plugins/wp-revenue-booster/app/controllers/class-options.php
    • > /wp-content/plugins/wp-revenue-booster/app/helpers/class-app.php
    • > /wp-content/plugins/wp-revenue-booster/app/lib/class-base-builtin-model.php
    • > /wp-content/plugins/wp-revenue-booster/app/lib/class-ctrl-factory.php
    • > /wp-content/plugins/wp-revenue-booster/app/views/admin/options/template-general.php
  • 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/JP.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/MY.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/TR.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/BR.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/BG.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/TH.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/IT.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/AU.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/PE.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-revenue-booster/app/lib/data/states/MX.php:6

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-revenue-booster/wp-revenue-booster.php Passed 13 tests

The primary PHP file in "WP Revenue Booster" version 1.0.2 is used by WordPress to initiate all plugin functionality
76 characters long description:
Dynamically personalize any text on your site based on your users' behavior.

Code Analysis Passed 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 plugin6,124 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP599504644,737
CSS716925772
JavaScript713251615

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.77
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes31
▷ Abstract classes722.58%
▷ Concrete classes2477.42%
▷ Final classes00.00%
Methods258
▷ Static methods13451.94%
▷ Public methods22085.27%
▷ Protected methods3212.40%
▷ Private methods62.33%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants25
▷ Global constants25100.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