Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼145.37ms] Passed 4 tests
This is a short check of server-side resources used by What Template Am I Using
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.37 ▲0.65 | 41.67 ▲21.34 |
Dashboard /wp-admin | 3.15 ▲0.10 | 47.25 ▲2.30 |
Posts /wp-admin/edit.php | 3.20 ▲0.10 | 48.45 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 97.74 ▼566.30 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 31.71 ▼14.43 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for What Template Am I Using
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 12,766 ▲9,170 | 17.16 ▲1.55 | 35.85 ▲25.47 | 98.23 ▲43.80 |
Dashboard /wp-admin | 2,973 ▲36 | 5.92 ▼0.06 | 140.54 ▼10.26 | 115.52 ▼7.71 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 65.51 ▼3.99 | 97.04 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.36 ▲2.87 | 293.19 ▼168.79 | 113.44 ▼22.51 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.00 | 155.77 ▼15.61 | 126.77 ▼28.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/what-template-am-i-using/what-is-my-ip.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/what-template-am-i-using/what-template-am-i-using.php:37
- > PHP Fatal error
Uncaught Error: Class 'WTAIU_Panel' not found in wp-content/plugins/what-template-am-i-using/inc/core-panels.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: server information, debug, template, theme development
what-template-am-i-using/what-template-am-i-using.php 92% from 13 tests
The main PHP file in "What Template Am I Using" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
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
Success! There were no dangerous files found in this plugin1,938 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 180 | 39 | 781 |
Sass | 3 | 112 | 0 | 474 |
JavaScript | 3 | 70 | 38 | 353 |
JSON | 2 | 29 | 0 | 183 |
PO File | 1 | 41 | 43 | 105 |
Markdown | 1 | 20 | 0 | 40 |
CSS | 2 | 2 | 2 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 14 | 19.72% |
▷ Public methods | 70 | 98.59% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/down-arrow.png | 0.22KB | 0.21KB | ▼ 6.14% |
assets/imgs/up-arrow.png | 0.20KB | 0.21KB | 0.00% |