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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.49ms] Passed 4 tests
This is a short check of server-side resources used by Tea noel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 33.89 ▲0.22 |
Dashboard /wp-admin | 3.08 ▲0.03 | 39.88 ▼6.99 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 41.27 ▼4.00 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.57 ▼557.80 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 30.31 ▼5.16 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Tea noel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,434 ▲838 | 16.58 ▲0.96 | 30.26 ▲19.76 | 55.80 ▲3.47 |
Dashboard /wp-admin | 2,967 ▲38 | 5.85 ▼0.13 | 140.37 ▼11.48 | 111.28 ▲9.47 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.71 ▼0.00 | 63.24 ▼6.24 | 85.52 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,683 ▲185 | 18.51 ▼0.26 | 397.20 ▲18.55 | 108.86 ▼6.45 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.02 ▼0.01 | 148.22 ▲4.36 | 122.30 ▲5.73 |
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 completely, with no 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/christmas-template/tea-noel.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== christmas-template ===
)
christmas-template/tea-noel.php 92% from 13 tests
The main PHP file in "Tea noel" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("christmas-template.php" instead of "tea-noel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected379 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1 | 10 | 156 |
JavaScript | 3 | 6 | 3 | 140 |
CSS | 1 | 3 | 1 | 83 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 3.00MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/b-ball_n5.png | 3.15KB | 2.60KB | ▼ 17.62% |
assets/images/b-ball_i6.png | 1.06KB | 1.54KB | 0.00% |
assets/images/b-ball_i2.png | 2.57KB | 2.36KB | ▼ 8.02% |
assets/images/b-head-decor_newyear.png | 68.41KB | 25.82KB | ▼ 62.26% |
assets/images/b-ball_i5.png | 3.72KB | 2.73KB | ▼ 26.46% |