Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/pf404-for-petfinder/plugin.php+94
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.00ms] Passed 4 tests
Analyzing server-side resources used by PF404 for PetFinder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.72 ▼38.90 |
Dashboard /wp-admin | 2.10 ▼1.20 | 7.02 ▼44.13 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.41 ▼42.40 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.79 | 6.74 ▼86.55 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 7.36 ▼26.43 |
PF404 for PetFinder /wp-admin/options-general.php?page=pf404 | 2.11 | 7.38 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_petfinder_404 |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
PF404 for PetFinder: 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,820 ▲74 | 14.45 ▲0.01 | 1.67 ▼0.56 | 43.10 ▲0.18 |
Dashboard /wp-admin | 2,226 ▲38 | 4.87 ▼1.02 | 109.22 ▲4.31 | 37.76 ▼1.16 |
Posts /wp-admin/edit.php | 2,109 ▲38 | 2.05 ▲0.02 | 41.01 ▲5.12 | 37.20 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,547 ▲18 | 23.21 ▲5.06 | 639.10 ▲0.60 | 66.83 ▲6.15 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.26 ▲0.07 | 110.33 ▲9.79 | 47.77 ▲3.60 |
PF404 for PetFinder /wp-admin/options-general.php?page=pf404 | 905 | 2.06 | 24.49 | 28.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/pf404-for-petfinder/plugin.php+94
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pf404
- > Notice in wp-content/plugins/pf404-for-petfinder/settings.php+178
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pf404-for-petfinder/plugin.php
- > /wp-content/plugins/pf404-for-petfinder/settings.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pf404-for-petfinder/page-404.php:1
- > PHP Fatal error
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 96% from 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
6 plugin tags: custom 404, petfinder, 404, not found, pets...
pf404-for-petfinder/plugin.php 92% from 13 tests
The main PHP script in "PF404 for PetFinder" version 0.1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pf404-for-petfinder.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin416 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 91 | 30 | 388 |
CSS | 1 | 0 | 0 | 26 |
JavaScript | 2 | 2 | 12 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 3 | 23.08% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 1.69MB with 1.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 1,695.40KB | 386.76KB | ▼ 77.19% |
screenshot-2.png | 34.88KB | 15.51KB | ▼ 55.54% |