Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.74ms] Passed 4 tests
A check of server-side resources used by UNICEF Tap Project Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.59 ▼0.74 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.59 ▼1.83 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.50 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.73 ▼6.06 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.51 ▲3.53 |
UNICEF Tap Project Banner /wp-admin/options-general.php?page=unicef-tap-project-banner | 3.24 | 33.74 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/unicef-tap-project-banner/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for UNICEF Tap Project Banner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 13.26 ▼1.01 | 1.76 ▼0.10 | 62.55 ▲14.97 |
Dashboard /wp-admin | 2,225 ▲22 | 4.81 ▼0.30 | 102.95 ▼17.07 | 40.47 ▼2.74 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.01 | 40.32 ▲2.28 | 37.12 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▼11 | 17.64 ▼0.45 | 585.17 ▼77.06 | 67.03 ▲1.71 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.24 ▲0.00 | 96.61 ▼4.60 | 45.20 ▼2.27 |
UNICEF Tap Project Banner /wp-admin/options-general.php?page=unicef-tap-project-banner | 899 | 1.79 | 34.27 | 35.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/unicef-tap-project-banner/unicef-tap-project-banner.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/unicef-tap-project-banner/banner.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: donate, clean water, charity, unicef, donations
unicef-tap-project-banner/unicef-tap-project-banner.php 92% from 13 tests
The main PHP file in "UNICEF Tap Project Banner" ver. 0.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:
- Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
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
Success! There were no dangerous files found in this plugin785 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 67 | 93 | 467 |
Bourne Again Shell | 2 | 44 | 19 | 193 |
Markdown | 3 | 35 | 0 | 76 |
YAML | 2 | 6 | 0 | 43 |
XML | 1 | 3 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 12 | 80.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 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.18MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/unicef-tap-project.png | 23.17KB | 7.73KB | ▼ 66.66% |
assets/screenshot-3.png | 31.62KB | 8.43KB | ▼ 73.32% |
assets/screenshot-2.png | 36.55KB | 10.18KB | ▼ 72.14% |
assets/screenshot-1.png | 96.54KB | 30.13KB | ▼ 68.79% |