Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.89ms] Passed 4 tests
A check of server-side resources used by Funny placeholder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 53.77 ▲15.87 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.67 ▼13.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.81 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.10 ▼11.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 30.67 ▼0.96 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_funny_placeholder |
Browser metrics Passed 4 tests
An overview of browser requirements for Funny placeholder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.10 | 2.08 ▲0.38 | 43.43 ▲2.36 |
Dashboard /wp-admin | 2,206 ▲17 | 5.86 ▼0.00 | 109.84 ▲4.85 | 45.15 ▼0.07 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.00 | 39.38 ▼2.50 | 35.55 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.23 ▼4.90 | 594.71 ▼26.63 | 52.62 ▼1.80 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.27 ▲0.12 | 101.78 ▲3.23 | 45.29 ▲0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_funny_placeholder
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funny-placeholder/funny-placeholder.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: adverisments, ads, placeholder, jokes, funny
funny-placeholder/funny-placeholder.php Passed 13 tests
The main PHP script in "Funny placeholder" version 1.1 is automatically included on every request by WordPress
78 characters long description:
If you do not have advertisements to show on your website, try some funny ads!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin124 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 23 | 97 |
PO File | 1 | 5 | 5 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
48 PNG files occupy 3.27MB with 1.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/02/cz/007.png | 38.55KB | 15.68KB | ▼ 59.32% |
img/03/cz/008.png | 36.80KB | 14.28KB | ▼ 61.20% |
img/01/cz/005.png | 167.71KB | 60.83KB | ▼ 63.73% |
img/03/cz/007.png | 30.39KB | 13.08KB | ▼ 56.96% |
img/01/cz/001.png | 86.66KB | 33.15KB | ▼ 61.74% |