79% simple-blueprint-installer

Code Review | Simple blueprint installer

WordPress plugin Simple blueprint installer scored79%from 54 tests.

About plugin

  • Plugin page: simple-blueprint-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: May 19, 2018
  • Latest release: Nov 16, 2019
  • Number of updates: 11
  • Update frequency: every 49.7 days
  • Top authors: pablocianes (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active /2,066 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼9.28ms] Passed 4 tests

A check of server-side resources used by Simple blueprint installer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1942.62 ▼2.38
Dashboard /wp-admin3.59 ▲0.2052.69 ▼14.00
Posts /wp-admin/edit.php3.64 ▲0.2449.91 ▼1.07
Add New Post /wp-admin/post-new.php6.13 ▲0.2088.51 ▼19.68
Media Library /wp-admin/upload.php3.45 ▲0.1840.30 ▲3.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
sbi_do_activation_redirect
db_upgraded
theysaidso_admin_options
sbi_plugins_blueprint
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple blueprint installer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.72 ▲0.171.76 ▼0.3242.79 ▲2.15
Dashboard /wp-admin2,195 ▲185.65 ▲0.0885.87 ▼7.5939.65 ▼8.05
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0335.96 ▼0.2233.74 ▼3.89
Add New Post /wp-admin/post-new.php1,534 ▲518.13 ▼5.16634.72 ▼27.0565.46 ▲15.15
Media Library /wp-admin/upload.php1,403 ▼04.13 ▼0.0397.33 ▼4.9448.03 ▲2.32

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

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
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-blueprint-installer/includes/views/simple-blueprint-installer-includes-display.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/simple-blueprint-installer/core/index.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-blueprint-installer/admin/views/simple-blueprint-installer-input-view.php:16
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/simple-blueprint-installer/includes/index.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-blueprint-installer/admin/views/simple-blueprint-installer-plugin-settings-view.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-blueprint-installer/admin/views/simple-blueprint-installer-plugin-view.php:18
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/simple-blueprint-installer/admin/index.php on line 1
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/simple-blueprint-installer/index.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: delete default content, installation, installer, setup, blueprint

simple-blueprint-installer/simple-blueprint-installer.php Passed 13 tests

The entry point to "Simple blueprint installer" version 1.0.2 is a PHP file that has certain tags in its header comment area
91 characters long description:
Install this as your first plugin and make easy and fast the first setup of your WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,301 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP142759131,061
JavaScript22926206
CSS28434

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1320.63%
▷ Public methods3961.90%
▷ Protected methods11.59%
▷ Private methods2336.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin