Benchmarks
Plugin footprint 65% from 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.90MB] [CPU: ▼171.72ms] Passed 4 tests
Server-side resources used by Thoughts Of The Day
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 30.31 ▲8.10 |
Dashboard /wp-admin | 2.74 ▼0.31 | 21.57 ▼22.75 |
Posts /wp-admin/edit.php | 2.75 ▼0.36 | 20.96 ▼22.62 |
Add New Post /wp-admin/post-new.php | 2.75 ▼2.69 | 23.41 ▼629.30 |
Media Library /wp-admin/upload.php | 2.75 ▼0.26 | 18.77 ▼12.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
thought_text |
Browser metrics Passed 4 tests
A check of browser resources used by Thoughts Of The Day
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲126 | 15.85 ▲0.26 | 8.30 ▲0.40 | 48.90 ▲1.03 |
Dashboard /wp-admin | 2,985 ▲59 | 5.89 ▼0.04 | 129.25 ▼17.22 | 145.95 ▲32.78 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.58 ▼0.11 | 62.86 ▼5.88 | 94.31 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,885 ▲270 | 19.19 ▼2.24 | 400.84 ▲117.57 | 109.86 ▲4.56 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 4.96 ▼0.08 | 126.32 ▼29.35 | 134.67 ▲12.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 1 option
- thought_text
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/thoughts-of-the-day/thoughts-of-the-day.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Admin Panel), #2 (Default Display)
- Plugin Name: You should set the name of your plugin on the first line (
=== thoughts-of-the-day ===
)
thoughts-of-the-day/thoughts-of-the-day.php Passed 13 tests
This is the main PHP file of "Thoughts Of The Day" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
121 characters long description:
Plugin is to show daily thought, can add thoughts in each line for each day and will show the each line according to day.
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
There were no executable files found in this plugin40 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 7 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.73KB | 5.75KB | ▼ 54.86% |
thought.png | 3.43KB | 0.90KB | ▼ 73.66% |
screenshot-2.png | 10.85KB | 6.24KB | ▼ 42.44% |