Benchmarks
Plugin footprint 83% 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.03MB] [CPU: ▼1.66ms] Passed 4 tests
An overview of server-side resources used by PetPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.40 ▲1.40 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.08 ▼0.04 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.44 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.40 ▼2.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.24 ▲1.67 |
PetPress /wp-admin/options-general.php?page=petpress-plugin | 3.22 | 33.48 |
Server storage [IO: ▲0.16MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_petpress_strays |
wp_petpress_sites |
wp_petpress_animals |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
PetPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.25 ▼0.94 | 1.92 ▲0.04 | 44.47 ▼6.20 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼1.02 | 107.53 ▼0.69 | 37.63 ▼4.19 |
Posts /wp-admin/edit.php | 2,096 ▲28 | 2.06 ▲0.01 | 39.86 ▲1.60 | 37.17 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.59 ▼4.64 | 602.71 ▼78.31 | 51.32 ▼4.00 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.01 | 94.56 ▼17.13 | 40.66 ▼8.39 |
PetPress /wp-admin/options-general.php?page=petpress-plugin | 1,143 | 2.03 | 25.08 | 39.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/petpress/petpress.php:1116
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("paypal.me/airdriemedia")
petpress/petpress.php 92% from 13 tests
The entry point to "PetPress" version 1.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 389 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,532 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 470 | 274 | 2,402 |
CSS | 1 | 31 | 6 | 130 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/foster.png | 8.25KB | 3.18KB | ▼ 61.51% |
includes/images/adoption-pending.png | 9.11KB | 3.33KB | ▼ 63.42% |
includes/images/sponsored-pet.png | 7.81KB | 3.04KB | ▼ 61.13% |
includes/images/video.png | 2.41KB | 0.93KB | ▼ 61.42% |
includes/images/AirdrieMedia50.png | 6.44KB | 3.59KB | ▼ 44.17% |