Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼6.33ms] Passed 4 tests
This is a short check of server-side resources used by List Petfinder Pets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 35.58 ▲0.48 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.79 ▼3.35 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 44.86 ▼4.51 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.14 | 90.28 ▼17.93 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 32.66 ▲0.98 |
List Petfinder Pets /wp-admin/options-general.php?page=petf | 3.34 | 31.26 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_petfw |
can_compress_scripts |
Petfinder-Listings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for List Petfinder Pets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.06 ▼0.32 | 1.71 ▲0.10 | 44.91 ▲8.05 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.10 | 96.27 ▲6.20 | 42.22 ▼1.09 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.02 | 41.34 ▲4.00 | 38.23 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,529 ▼10 | 23.26 ▲5.25 | 642.75 ▼31.92 | 67.35 ▼4.76 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.05 | 95.96 ▼11.33 | 41.66 ▼5.16 |
List Petfinder Pets /wp-admin/options-general.php?page=petf | 1,006 | 2.13 | 22.46 | 26.91 |
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
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_petfw
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- Petfinder-Listings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/petfinder-listings/featuredpet-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/petfinder-listings/featuredpet-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Settings Page), #2 (Widget Settings), #3 (Excerpt of one pet from page with shortcode [shelter_list]), #4 (Widget display)
petfinder-listings/petfinder-listings.php Passed 13 tests
The entry point to "List Petfinder Pets" version 1.1 is a PHP file that has certain tags in its header comment area
105 characters long description:
The List Petfinder Pets plugin takes advantage of the Petfinder API to list Shelter Pets on your website.
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
Everything looks great! No dangerous files found in this plugin702 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 124 | 50 | 669 |
CSS | 1 | 6 | 0 | 30 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin