Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.16ms] Passed 4 tests
This is a short check of server-side resources used by Cute Animals
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.64 ▼6.65 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.57 ▼4.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.85 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.41 ▼0.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.28 ▲1.65 |
Cute Animals settings /wp-admin/options-general.php?page=cute_animals_settings | 3.22 | 32.50 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cute_animals |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Cute Animals
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▼0.01 | 1.79 ▼0.06 | 42.59 ▼4.95 |
Dashboard /wp-admin | 2,201 ▲21 | 5.63 ▲0.03 | 92.98 ▼0.69 | 43.01 ▲6.50 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.97 ▼0.01 | 40.68 ▲1.02 | 37.15 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.33 ▼4.91 | 612.62 ▼93.54 | 64.31 ▲1.91 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.22 ▼0.02 | 98.20 ▲3.34 | 42.85 ▼1.10 |
Cute Animals settings /wp-admin/options-general.php?page=cute_animals_settings | 884 | 2.00 | 26.10 | 29.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cute_animals_settings
- > Notice in wp-content/plugins/cute-animals/views/settings.php+12
Trying to get property 'sprite' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cute_animals_settings
- > Notice in wp-content/plugins/cute-animals/views/settings.php+21
Trying to get property 'direction' of non-object
- > GET request to /wp-admin/options-general.php?page=cute_animals_settings
- > Notice in wp-content/plugins/cute-animals/views/settings.php+24
Trying to get property 'speed' of non-object
- > GET request to /wp-admin/options-general.php?page=cute_animals_settings
- > Notice in wp-content/plugins/cute-animals/views/settings.php+26
Trying to get property 'position' of non-object
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 plugins_url() in wp-content/plugins/cute-animals/animals.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/cute-animals/views/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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 to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== cute-animals ===
)
cute-animals/animals.php 77% from 13 tests
This is the main PHP file of "Cute Animals" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
- Main file name: The principal plugin file should be the same as the plugin slug ("cute-animals.php" instead of "animals.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin274 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 15 | 108 |
CSS | 2 | 13 | 0 | 98 |
JavaScript | 1 | 17 | 3 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
sprites/dog.png | 2.70KB | 2.64KB | ▼ 2.21% |
sprites/phoenix.png | 16.09KB | 16.03KB | 0.36% |
sprites/bird.png | 6.35KB | 2.03KB | ▼ 68.06% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |