78% bootitems-core

Code Review | Bootitems Core

WordPress plugin Bootitems Core scored78%from 54 tests.

About plugin

  • Plugin page: bootitems-core
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 29, 2022
  • Latest release: Jul 30, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: masudrana24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲4.64MB] [CPU: ▲26.24ms] Passed 4 tests

An overview of server-side resources used by Bootitems Core
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.49 ▲5.0365.32 ▲22.66
Dashboard /wp-admin8.51 ▲5.2172.20 ▲19.71
Posts /wp-admin/edit.php8.51 ▲5.1572.88 ▲27.10
Add New Post /wp-admin/post-new.php9.06 ▲3.17127.77 ▲35.49
Media Library /wp-admin/upload.php8.51 ▲5.2870.72 ▲36.22
Freemius Debug [v.2.4.4] /wp-admin/admin.php?page=freemius8.5151.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 196 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
fs_active_plugins
fs_debug_mode
widget_theysaidso_widget
fs_gdpr
widget_recent-comments
db_upgraded
fs_accounts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Bootitems Core
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.24 ▼1.041.84 ▲0.1228.68 ▼11.20
Dashboard /wp-admin2,239 ▲534.85 ▼0.10112.17 ▲6.7244.48 ▲4.47
Posts /wp-admin/edit.php2,122 ▲302.00 ▲0.0143.55 ▼3.5939.16 ▲4.47
Add New Post /wp-admin/post-new.php1,540 ▼218.23 ▼0.19622.69 ▲20.1955.28 ▼3.36
Media Library /wp-admin/upload.php1,424 ▲364.22 ▲0.0996.84 ▼1.5343.54 ▼0.59
Freemius Debug [v.2.4.4] /wp-admin/admin.php?page=freemius1,0781.7124.0327.72

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • theysaidso_admin_options
    • fs_accounts
    • can_compress_scripts
    • fs_active_plugins
    • widget_recent-comments
    • db_upgraded
    • fs_debug_mode
    • widget_theysaidso_widget
    • fs_gdpr
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bootitems-core/inc/customizer.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/bootitems-widgets.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/bootitems-core/inc/menu/bootitems_walker.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/bootitems-core/inc/menu/bootitems_edit_walker.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/menu/bootitems-megamenu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/widgets/contact-info.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bootitems-core/inc/dashboard/dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/functions.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/widgets/about-info.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/widgets/recent-posts.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bc_fs() in wp-content/plugins/bootitems-core/inc/widgets/social-profiles.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: content, demo, template, import, bootitems core...

bootitems-core/bootitems-core.php 92% from 13 tests

The principal PHP file in "Bootitems Core" v. 1.0.0 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 194 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin32,366 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP1307,63416,69831,750
Markdown1680214
JavaScript538113200
CSS1224175
JSON10027

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity69.54
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes61
▷ Abstract classes23.28%
▷ Concrete classes5996.72%
▷ Final classes00.00%
Methods1,199
▷ Static methods17814.85%
▷ Public methods85271.06%
▷ Protected methods151.25%
▷ Private methods33227.69%
Functions109
▷ Named functions109100.00%
▷ Anonymous functions00.00%
Constants127
▷ Global constants10280.31%
▷ Class constants2519.69%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%