Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pet-manager/inc/widgets.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; PET_Widget_Searchform has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼58.51ms] Passed 4 tests
This is a short check of server-side resources used by Pet Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.22 | 6.04 ▼37.72 |
Dashboard /wp-admin | 2.31 ▼1.08 | 7.48 ▼58.95 |
Posts /wp-admin/edit.php | 2.31 ▼1.09 | 7.82 ▼44.06 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.62 | 6.36 ▼93.32 |
Media Library /wp-admin/upload.php | 2.31 ▼0.96 | 7.71 ▼29.66 |
Add Pet /wp-admin/post-new.php?post_type=pet | 2.31 | 8.66 |
Options & About /wp-admin/edit.php?post_type=pet&page=pet_options_page | 2.31 | 7.99 |
Pets /wp-admin/edit.php?post_type=pet | 2.31 | 7.94 |
Server storage [IO: ▲0.22MB] [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: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Pet Manager: 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,914 ▲153 | 13.83 ▼0.58 | 8.60 ▲6.85 | 41.19 ▼2.87 |
Dashboard /wp-admin | 2,226 ▲55 | 5.52 ▼0.10 | 93.78 ▲3.96 | 81.39 ▲40.06 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.10 ▲0.12 | 35.82 ▼0.39 | 37.12 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 22.92 ▼0.28 | 700.93 ▲55.50 | 66.68 ▲5.28 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.24 ▲0.04 | 96.71 ▼1.59 | 75.29 ▲27.11 |
Add Pet /wp-admin/post-new.php?post_type=pet | 2,479 | 7.87 | 182.68 | 137.80 |
Options & About /wp-admin/edit.php?post_type=pet&page=pet_options_page | 952 | 2.05 | 23.30 | 33.77 |
Pets /wp-admin/edit.php?post_type=pet | 1,147 | 1.92 | 34.76 | 36.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/pet-manager/inc/widgets.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; PET_Widget_Searchform has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pet
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/pet-manager/inc/widgets.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; PET_Widget_Searchform has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pet
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/pet-manager/inc/widgets.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; PET_Widget_Display has a deprecated constructor
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pet
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/pet-manager/pet-manager.php+94
Function create_function() is deprecated
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pet
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
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
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/pet-manager/inc/form.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pet-manager/inc/widgets.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pet-manager/pet-manager.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pet-manager/inc/extend.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pet-manager/inc/metabox/boxes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pet-manager/inc/metabox/init.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pet-manager/inc/form-action.php:110
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pet-manager/pet_options_page.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=pet
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/pet-manager/inc/metabox/js/cmb.js?ver=6.3.1:67:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=pet
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (A pet for adoption, single post view), #2 (A Lost pet, single post view, you can display a Google Map by providing an area or address), #3 (Widgets displaying last added pets, pets byt type, status etc and the search form), #4 (Pet post table in backend)
pet-manager/pet-manager.php 92% from 13 tests
The main PHP file in "Pet Manager" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,820 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 401 | 202 | 1,590 |
PO File | 2 | 303 | 753 | 667 |
CSS | 2 | 46 | 22 | 436 |
JavaScript | 4 | 17 | 55 | 127 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 29.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 9.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/adopted.png | 0.72KB | 0.60KB | ▼ 16.85% |
inc/img/lost.png | 0.66KB | 0.58KB | ▼ 12.87% |
inc/metabox/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/img/care.png | 0.51KB | 0.45KB | ▼ 11.83% |