84% blank-slate

Code Review | Blank Slate

WordPress plugin Blank Slate scored 84% from 54 tests.

About plugin

  • Plugin page: blank-slate
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: Mar 10, 2023
  • Number of updates: 27
  • Update frequency: every 93.6 days
  • Top authors: areimann (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

20,000+ active / 192,632 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.02ms] Passed 4 tests

Server-side resources used by Blank Slate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.41 ▼2.17
Dashboard /wp-admin3.32 ▲0.0243.03 ▼5.04
Posts /wp-admin/edit.php3.37 ▲0.0243.13 ▼3.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.29 ▼5.12
Media Library /wp-admin/upload.php3.25 ▲0.0234.43 ▲0.53

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Blank Slate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.421.67 ▼0.3251.96 ▲8.33
Dashboard /wp-admin2,206 ▲184.88 ▼1.00107.91 ▼5.9237.41 ▼4.63
Posts /wp-admin/edit.php2,086 ▼02.06 ▲0.0737.25 ▲0.1533.52 ▼0.15
Add New Post /wp-admin/post-new.php1,547 ▲2418.30 ▼4.91589.82 ▼101.8176.82 ▲18.81
Media Library /wp-admin/upload.php1,388 ▲94.17 ▼0.1098.01 ▼6.5643.43 ▼3.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blank-slate/blank-slate.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/blank-slate/templates/blank-slate-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blank-slate/pages/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: canvas, blank, page builder, landing, empty

blank-slate/blank-slate.php Passed 13 tests

The principal PHP file in "Blank Slate" v. 1.2.1 is loaded by WordPress automatically on each request
68 characters long description:
Provides a blank page template for use with WordPress page builders.

Code Analysis Passed 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
No dangerous file extensions were detected107 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44059107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.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
No PNG files were detected