Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.06ms] Passed 4 tests
Analyzing server-side resources used by Display Template Name
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 31.91 ▼9.06 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.84 ▲0.15 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.86 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 105.04 ▲12.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.93 ▲2.54 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
DisplayTemplateNameAdminOptions |
widget_recent-comments |
Browser metrics Passed 4 tests
Display Template Name: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.26 ▼1.12 | 1.92 ▼0.01 | 43.58 ▼2.13 |
Dashboard /wp-admin | 2,215 ▲27 | 4.87 ▼0.01 | 108.98 ▼1.74 | 43.81 ▼2.71 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▼0.03 | 35.65 ▼4.21 | 32.15 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.08 ▼0.08 | 728.45 ▲36.57 | 56.09 ▼3.82 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.01 | 94.62 ▼8.31 | 42.18 ▼3.43 |
Display Template Name /wp-admin/display-template-name.php | 26 | 0.44 | 0.07 | 14.75 |
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
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/display-template-name/display-template-name.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/display-template-name.php
- > Network (severe)
wp-admin/display-template-name.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Area display debug.), #2 (Page display customization)
- Contributors: Contributors not specified
display-template-name/display-template-name.php 92% from 13 tests
The entry point to "Display Template Name" version 1.7.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
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 detected395 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 48 | 295 |
PO File | 2 | 24 | 50 | 74 |
CSS | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/masque_tr.png | 1.62KB | 0.46KB | ▼ 71.93% |
images/masque_br.png | 1.61KB | 0.46KB | ▼ 71.73% |
images/default.png | 14.32KB | 13.02KB | ▼ 9.12% |
images/masque_tl.png | 1.62KB | 0.46KB | ▼ 71.78% |
images/mac.png | 6.36KB | 5.40KB | ▼ 15.05% |