78% iboxindia

Code Review | Iboxindia

WordPress plugin Iboxindia scored78%from 54 tests.

About plugin

  • Plugin page: iboxindia
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Feb 13, 2021
  • Latest release: Mar 7, 2021
  • Number of updates: 8
  • Update frequency: every 4.6 days
  • Top authors: iboxindia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼1.83ms] Passed 4 tests

A check of server-side resources used by Iboxindia
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2345.86 ▲0.11
Dashboard /wp-admin3.61 ▲0.3151.77 ▼4.04
Posts /wp-admin/edit.php3.66 ▲0.3054.76 ▲4.91
Add New Post /wp-admin/post-new.php6.14 ▲0.2699.80 ▼8.28
Media Library /wp-admin/upload.php3.47 ▲0.2441.74 ▲5.96
Iboxindia /wp-admin/admin.php?page=iboxindia3.4642.20
Backup Restore /wp-admin/admin.php?page=iboxindia-backup-restore3.4947.89
Import Data /wp-admin/admin.php?page=iboxindia-import-data3.4638.94
Dashboard /wp-admin/admin.php?page=iboxindia-dashboard3.4638.32
Settings /wp-admin/admin.php?page=iboxindia-settings3.4638.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
iboxindia_settings
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Iboxindia: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲15014.27 ▼0.351.88 ▲0.0143.12 ▲0.53
Dashboard /wp-admin2,292 ▲1125.57 ▼0.0884.34 ▼5.7579.61 ▲31.69
Posts /wp-admin/edit.php2,201 ▲1042.11 ▼0.0141.57 ▲5.3938.09 ▲2.60
Add New Post /wp-admin/post-new.php1,608 ▲8023.01 ▼0.07661.76 ▲44.2957.35 ▲3.59
Media Library /wp-admin/upload.php1,497 ▲1004.21 ▼0.01100.90 ▲4.0877.20 ▲33.63
Iboxindia /wp-admin/admin.php?page=iboxindia8862.2529.5427.13
Backup Restore /wp-admin/admin.php?page=iboxindia-backup-restore1,4102.1932.1634.45
Import Data /wp-admin/admin.php?page=iboxindia-import-data8892.1431.6128.45
Dashboard /wp-admin/admin.php?page=iboxindia-dashboard1,0592.2537.7530.77
Settings /wp-admin/admin.php?page=iboxindia-settings1,0542.5435.6743.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • iboxindia_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/iboxindia/iboxindia.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iboxindia/includes/functions.php:27
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/iboxindia/iboxindia.php on line 19
    • > PHP Warning
      Use of undefined constant IBX_WP_PLUGIN_DIR - assumed 'IBX_WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/iboxindia/load.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'IBX_WP_PLUGIN_DIR/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/iboxindia/load.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/iboxindia/iboxindia.php on line 19
    • > PHP Warning
      require_once(IBX_WP_PLUGIN_DIR/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/iboxindia/load.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iboxindia-settings
    • > Network (severe)
    wp-content/plugins/iboxindia/inc/assets/images/logo.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: free, theme, iboxindia

iboxindia/iboxindia.php 92% from 13 tests

The primary PHP file in "Iboxindia" version 1.0.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Git Repository: There should be no Git repositories present in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,704 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP162794381,294
JavaScript2186199
CSS3172168
YAML2104443

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.45
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods65
▷ Static methods2335.38%
▷ Public methods5381.54%
▷ Protected methods00.00%
▷ Private methods1218.46%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png2.95KB2.77KB▼ 5.86%