79% wp-bootscraper

Code Review | WordPress Bootscraper

WordPress plugin WordPress Bootscraper scored79%from 54 tests.

About plugin

  • Plugin page: wp-bootscraper
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Nov 2, 2022
  • Number of updates: 20
  • Update frequency: every 110.5 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.29ms] Passed 4 tests

Server-side resources used by WordPress Bootscraper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.14 ▼4.05
Dashboard /wp-admin3.39 ▲0.0449.07 ▼10.06
Posts /wp-admin/edit.php3.50 ▲0.1447.56 ▲0.13
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.85 ▲4.48
Media Library /wp-admin/upload.php3.31 ▲0.0834.41 ▲0.83
WP Bootscraper /wp-admin/tools.php?page=wp-bootscraper3.2831.44

Server storage [IO: ▲0.05MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Bootscraper
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.77 ▲0.471.90 ▲0.1039.18 ▼2.65
Dashboard /wp-admin2,210 ▲225.88 ▲1.01106.14 ▲5.7940.75 ▼4.66
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0238.52 ▲2.9935.87 ▲3.33
Add New Post /wp-admin/post-new.php1,531 ▼622.87 ▼0.32604.59 ▼80.2147.94 ▼1.93
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0794.16 ▼14.3939.72 ▼7.36
WP Bootscraper /wp-admin/tools.php?page=wp-bootscraper8242.0625.6427.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-bootscraper/templates/settings.php
    • > /wp-content/plugins/wp-bootscraper/wp-bootscraper.php
    • > /wp-content/plugins/wp-bootscraper/index.php
    • > /wp-content/plugins/wp-bootscraper/templates/index.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-bootscraper/templates/administrator.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-bootscraper/templates/frontend.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: header, site, scripts, cleanup, safe...

wp-bootscraper/wp-bootscraper.php Passed 13 tests

The primary PHP file in "WordPress Bootscraper" version 2.1.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Scrap out things you don't need on your WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected502 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP56442469
JavaScript13020
CSS12013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin