Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.11ms] Passed 4 tests
Analyzing server-side resources used by Pet Adoption Listings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.69 ▼4.78 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.64 ▼2.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.30 ▲1.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.24 ▼19.84 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.84 ▼1.12 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_pet_adoption_listings_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pet Adoption Listings: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.13 | 1.56 ▼0.16 | 41.28 ▼6.79 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.98 | 103.69 ▼9.83 | 40.50 ▼6.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 39.05 ▲4.91 | 35.90 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.24 ▼0.24 | 661.19 ▲11.07 | 60.97 ▲16.45 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▲0.00 | 98.07 ▼4.55 | 43.80 ▲3.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_pet_adoption_listings_widget
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pet-adoption-listings/pet-adoption-listings.php
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: adoption, adoptable pets, pets, animals
pet-adoption-listings/pet-adoption-listings.php Passed 13 tests
"Pet Adoption Listings" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Display adoptable pets from an Adopt-a-Pet.com shelter's listings
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin149 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 64 | 149 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
4 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.09KB | 13.62KB | ▼ 66.86% |
screenshot-4.png | 92.40KB | 24.97KB | ▼ 72.97% |
screenshot-3.png | 50.59KB | 14.51KB | ▼ 71.31% |
screenshot-2.png | 131.21KB | 34.85KB | ▼ 73.44% |