84% rebusted

Code Review | reBusted!

WordPress plugin reBusted! scored84%from 54 tests.

About plugin

  • Plugin page: rebusted
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Sep 21, 2023
  • Number of updates: 15
  • Update frequency: every 136.4 days
  • Top authors: pross (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

8,000+ active /19,816 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.65ms] Passed 4 tests

A check of server-side resources used by reBusted!
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.07 ▼4.26
Dashboard /wp-admin3.33 ▲0.0245.65 ▼1.29
Posts /wp-admin/edit.php3.38 ▲0.0246.16 ▼3.66
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.22 ▼12.48
Media Library /wp-admin/upload.php3.25 ▲0.0235.26 ▼2.18

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for reBusted!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.17 ▼1.245.18 ▲3.5240.18 ▼4.23
Dashboard /wp-admin2,206 ▲155.89 ▲0.92106.81 ▼9.4544.10 ▼1.01
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.84 ▼4.4338.97 ▲3.10
Add New Post /wp-admin/post-new.php1,542 ▲2818.20 ▲0.74622.86 ▼51.4056.66 ▲4.29
Media Library /wp-admin/upload.php1,379 ▼34.21 ▼0.0197.49 ▼1.4541.60 ▼4.27

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rebusted/rebusted.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rebusted/tests/test-scritps.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rebusted/tests/test-actions.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rebusted/tests/test-filters.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rebusted/tests/test-vars.php:8
    • > PHP Fatal error
      Uncaught Exception: Could not find /tmp/wordpress-tests-lib/includes/functions.php, have you run bin/install-wp-tests.sh ? in wp-content/plugins/rebusted/tests/bootstrap.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: develop, refresh, empty, client, debug...

rebusted/rebusted.php 92% from 13 tests

The principal PHP file in "reBusted!" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 394 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected271 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP63872125
Bourne Shell12111120
XML10014
Markdown15011
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.80
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods736.84%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin