90% theme-creator-with-bootstrap

Code Review | Theme Creator for Bootstrap

WordPress plugin Theme Creator for Bootstrap scored90%from 54 tests.

About plugin

  • Plugin page: theme-creator-wit...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2020
  • Latest release: Sep 30, 2020
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: dadopuccio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.70ms] Passed 4 tests

Analyzing server-side resources used by Theme Creator for Bootstrap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.97 ▼1.61
Dashboard /wp-admin3.31 ▲0.0147.78 ▼0.50
Posts /wp-admin/edit.php3.36 ▲0.0145.44 ▼7.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.03 ▼28.89
Media Library /wp-admin/upload.php3.24 ▲0.0135.28 ▲2.26
Getting Started /wp-admin/admin.php?page=bootstrap-start3.2030.34
Create Theme /wp-admin/admin.php?page=bootstrap-create3.2032.06

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Creator for Bootstrap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲7913.26 ▼1.111.66 ▼0.3946.02 ▲5.59
Dashboard /wp-admin2,256 ▲684.88 ▼0.04113.83 ▲7.7942.09 ▼1.70
Posts /wp-admin/edit.php2,146 ▲542.03 ▲0.0635.69 ▼6.4033.82 ▼1.08
Add New Post /wp-admin/post-new.php1,561 ▲4018.81 ▼4.46615.28 ▼42.0354.38 ▲1.81
Media Library /wp-admin/upload.php1,441 ▲534.22 ▼0.0097.50 ▼8.8643.10 ▼8.26
Getting Started /wp-admin/admin.php?page=bootstrap-start9752.0626.5132.89
Create Theme /wp-admin/admin.php?page=bootstrap-create1,0401.8328.3233.10

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress, themes, responsive, bootstrap

theme-creator-with-bootstrap/theme-creator-with-bootstrap.php Passed 13 tests

"Theme Creator for Bootstrap" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
This plugin allows you to easly create your Bootstrap Theme in 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
Good job! No executable or dangerous file extensions detected1,935 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP10401641,796
CSS42824137
JavaScript20122

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 7.25MB with 5.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Tutorial/tutorial2.png30.77KB10.58KB▼ 65.63%
images/page2.png71.37KB11.32KB▼ 84.14%
images/Layout5/screenshot.png1,575.01KB470.85KB▼ 70.10%
images/page1.png71.71KB11.46KB▼ 84.01%
images/5option.png9.60KB4.94KB▼ 48.50%