10% realbig-media

Code Review | Realbig For WordPress

WordPress plugin Realbig For WordPress scored10%from 54 tests.

About plugin

  • Plugin page: realbig-media
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 26, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 54
  • Update frequency: every 30.6 days
  • Top authors: nikmelnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /37,092 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/realbig-media/realbigForWP.php+631
    Undefined variable: wpPrefix

Server metrics [RAM: ▲0.09MB] [CPU: ▲12.10ms] Passed 4 tests

An overview of server-side resources used by Realbig For WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3170.82 ▲28.62
Dashboard /wp-admin3.44 ▲0.1065.40 ▲0.80
Posts /wp-admin/edit.php3.47 ▲0.1270.32 ▲23.37
Add New Post /wp-admin/post-new.php5.96 ▲0.08101.09 ▲1.76
Media Library /wp-admin/upload.php3.30 ▲0.0755.66 ▲22.45

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: 7 new tables, 7 new options
New tables
realbig_turbo_ads
realbig_settings
wp_realbig_plugin_settings
realbig_plugin_settings
wp_realbig_settings
wp_realbig_amp_ads
wp_realbig_turbo_ads
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
realbigForWP_version
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Realbig For WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14714.47 ▲0.128.58 ▲6.9344.60 ▼4.08
Dashboard /wp-admin2,251 ▲715.58 ▼0.0490.74 ▼4.6740.59 ▼2.51
Posts /wp-admin/edit.php2,154 ▲542.04 ▲0.0937.95 ▲0.5931.87 ▼3.25
Add New Post /wp-admin/post-new.php1,539 ▲1123.04 ▼0.27692.66 ▲36.3067.60 ▲8.40
Media Library /wp-admin/upload.php1,457 ▲574.18 ▲0.0196.53 ▼4.8241.28 ▼0.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_realbig_amp_ads
    • realbig_plugin_settings
    • realbig_turbo_ads
    • wp_realbig_turbo_ads
    • realbig_settings
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • realbigForWP_version
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/realbig-media/templates/adminPage/turbo/counts.php
    • > /wp-content/plugins/realbig-media/templates/adminPage/turbo/templates.php
    • > /wp-content/plugins/realbig-media/templates/adminPage/turbo/types.php
    • > /wp-content/plugins/realbig-media/templates/adminPage/cache.php
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RFWP_Utils' not found in wp-content/plugins/realbig-media/templates/adminPage/turbo/blocks/feedback.php:52
    • > PHP Notice
      Undefined index: title in wp-content/plugins/realbig-media/templates/adminPage/turbo/feed.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-filesystem-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/realbig-media/templates/adminPage.php on line 2
    • > PHP Notice
      Undefined index: blockFeedbackPosition in wp-content/plugins/realbig-media/templates/adminPage/turbo/blocks/feedback.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'RFWP_Utils' not found in wp-content/plugins/realbig-media/templates/adminPage/turbo/design.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/realbig-media/templates/adminPage.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/realbig-media/testFunctions.php:5
    • > PHP Notice
      Undefined index: token in wp-content/plugins/realbig-media/templates/adminPage/sync.php on line 8
    • > PHP Notice
      Undefined index: lang in wp-content/plugins/realbig-media/templates/adminPage/turbo/feed.php on line 11
    • > PHP Notice
      Undefined index: name in wp-content/plugins/realbig-media/templates/adminPage/turbo/feed.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: ad, content filling

realbig-media/realbigForWP.php 92% from 13 tests

The principal PHP file in "Realbig For WordPress" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("realbig-media.php" instead of "realbigForWP.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin9,249 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP399421,7057,518
JavaScript41241901,539
CSS1333184
SVG1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity24.64
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods94
▷ Static methods7680.85%
▷ Public methods7175.53%
▷ Protected methods77.45%
▷ Private methods1617.02%
Functions143
▷ Named functions13896.50%
▷ Anonymous functions53.50%
Constants30
▷ Global constants00.00%
▷ Class constants30100.00%
▷ Public constants30100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/realbig_plugin_hover.png3.95KB1.20KB▼ 69.50%
assets/realbig_plugin_standart_old.png3.85KB1.08KB▼ 72.09%
assets/realbig_plugin_standart.png3.85KB1.08KB▼ 72.09%
assets/realbig_plugin_hover_old.png3.95KB1.20KB▼ 69.50%