Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼297.79ms] Passed 4 tests
This is a short check of server-side resources used by Templateberg - Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.48 | 54.23 ▲0.61 |
Dashboard /wp-admin | 3.83 ▲0.42 | 40.77 ▼35.52 |
Posts /wp-admin/edit.php | 4.12 ▲0.48 | 45.98 ▲8.20 |
Add New Post /wp-admin/post-new.php | 7.39 ▲0.42 | 96.35 ▼1,157.09 |
Media Library /wp-admin/upload.php | 3.78 ▲0.48 | 34.00 ▲0.83 |
Themes Template Kits /wp-admin/admin.php?page=templateberg-themes-template-kits | 3.86 | 31.96 |
Templateberg /wp-admin/admin.php?page=templateberg | 3.77 | 57.55 |
Gutenberg Templates /wp-admin/admin.php?page=templateberg-gutenberg-templates | 3.81 | 64.93 |
Server storage [IO: ▲1.15MB] [DB: ▲1.85MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 1 new option
New WordPress options |
---|
__templateberg_do_redirect |
Browser metrics Passed 4 tests
An overview of browser requirements for Templateberg - Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,847 ▲103 | 15.58 ▼0.09 | 10.61 ▲4.71 | 2.65 ▲0.45 |
Dashboard /wp-admin | 2,944 ▲93 | 6.18 ▼0.03 | 120.29 ▼19.14 | 162.42 ▼5.20 |
Posts /wp-admin/edit.php | 2,755 ▲64 | 3.25 ▲0.01 | 62.67 ▼4.50 | 142.45 ▼62.14 |
Add New Post /wp-admin/post-new.php | 1,722 ▲24 | 17.84 ▼3.87 | 455.70 ▲27.11 | 151.16 ▼23.67 |
Media Library /wp-admin/upload.php | 1,764 ▲66 | 5.51 ▼0.02 | 141.43 ▼4.54 | 188.59 ▼13.70 |
Themes Template Kits /wp-admin/admin.php?page=templateberg-themes-template-kits | 1,686 | 3.26 | 61.71 | 142.73 |
Templateberg /wp-admin/admin.php?page=templateberg | 1,318 | 3.18 | 59.08 | 184.53 |
Gutenberg Templates /wp-admin/admin.php?page=templateberg-gutenberg-templates | 1,697 | 3.18 | 62.61 | 142.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.85MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- __templateberg_do_redirect
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/templateberg/templateberg.php
- > /wp-content/plugins/templateberg/includes/admin/templates/connecting.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/templateberg/includes/lists/templates/theme.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templateberg/includes/lists/class-templateberg-themes-template-kits.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/templateberg/includes/admin/templates/header.php:5
- > PHP Warning
Use of undefined constant TEMPLATEBERG_URL - assumed 'TEMPLATEBERG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/templateberg/includes/lists/templates/current-theme.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/templateberg/includes/lists/templates/getting-started.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/templateberg/includes/lists/templates/gutenberg.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/templateberg/includes/admin/templates/faq.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/templateberg/includes/lists/templates/theme-buy-preview.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function templateberg_theme_templates() in wp-content/plugins/templateberg/includes/lists/templates/current-theme.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templateberg/includes/lists/class-templateberg-gutenberg-templates.php:57
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=templateberg-themes-template-kits
- > Network (severe)
http://localhost/templateberg/wp-content/plugins/templateberg/assets/img/logo-48x48.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: A description for screenshot #4 is required in templateberg/assets to your readme.txt
templateberg/templateberg.php 85% from 13 tests
"Templateberg - Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 88 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,209 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 404 | 1,119 | 4,198 |
JavaScript | 5 | 0 | 0 | 5 |
CSS | 3 | 0 | 0 | 3 |
SVG | 2 | 0 | 1 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 18 | 17.65% |
▷ Public methods | 96 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 5.88% |
Functions | 39 | |
▷ Named functions | 28 | 71.79% |
▷ Anonymous functions | 11 | 28.21% |
Constants | 15 | |
▷ Global constants | 5 | 33.33% |
▷ Class constants | 10 | 66.67% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.26MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/theme-install.png | 67.15KB | 21.72KB | ▼ 67.66% |
assets/img/logo-48x48.png | 0.66KB | 0.47KB | ▼ 29.20% |
assets/img/prospective-image-640x214.png | 34.24KB | 35.63KB | 0.00% |
assets/img/theme-template-kits.png | 163.18KB | 50.63KB | ▼ 68.97% |