94% blanked

Code Review | Blanked Template

WordPress plugin Blanked Template scored 94% from 54 tests.

About plugin

  • Plugin page: blanked
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.4
  • WordPress version: 5.8.1
  • First release: Nov 7, 2019
  • Latest release: Nov 17, 2019
  • Number of updates: 23
  • Update frequency: every 0.5 days
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 467 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.26MB] [CPU: ▼137.48ms] Passed 4 tests

This is a short check of server-side resources used by Blanked Template
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.2137.48 ▲1.32
Dashboard /wp-admin3.38 ▲0.3349.38 ▲1.70
Posts /wp-admin/edit.php3.43 ▲0.3251.64 ▲9.19
Add New Post /wp-admin/post-new.php5.68 ▲0.24100.37 ▼553.38
Media Library /wp-admin/upload.php3.26 ▲0.2635.37 ▲0.45
Blanked Template /wp-admin/options-general.php?page=blanked_setting3.2741.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Blanked Template: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲13615.85 ▲0.4811.02 ▼0.4846.41 ▼4.80
Dashboard /wp-admin2,972 ▲355.85 ▼0.09138.73 ▼14.15109.29 ▲1.77
Posts /wp-admin/edit.php2,741 ▲22.70 ▼0.0267.38 ▼7.5494.33 ▲6.90
Add New Post /wp-admin/post-new.php1,686 ▲318.28 ▼0.45418.93 ▲12.09116.86 ▼1.85
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.05166.38 ▲7.12116.15 ▼0.37
Blanked Template /wp-admin/options-general.php?page=blanked_setting1,6584.1592.5981.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/blanked/blanked-template.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: blank template, page template

blanked/blanked.php Passed 13 tests

"Blanked Template" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add blank page template for all themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,142 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42436511,142

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity173.00
▷ Minimum class complexity173.00
▷ Maximum class complexity173.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods3266.67%
▷ Protected methods1633.33%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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