Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.63MB] [CPU: ▼39.05ms] Passed 4 tests
An overview of server-side resources used by Address Book
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.33 ▼0.13 | 19.53 ▼21.72 |
Dashboard /wp-admin | 3.38 ▲0.08 | 23.27 ▼31.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 19.29 ▼26.85 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.50 | 20.78 ▼76.32 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 25.44 ▼13.53 |
Address Book /wp-admin/edit.php?post_type=address-book | 3.39 | 25.14 |
Add Address /wp-admin/post-new.php?post_type=address-book | 3.39 | 27.11 |
Sports /wp-admin/edit-tags.php?taxonomy=sport&post_type=address-book | 3.39 | 20.36 |
Cities /wp-admin/edit-tags.php?taxonomy=city&post_type=address-book | 3.39 | 22.53 |
Institutions /wp-admin/edit-tags.php?taxonomy=institution&post_type=address-book | 3.39 | 21.69 |
Settings /wp-admin/edit.php?post_type=address-book&page=options | 3.39 | 22.85 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
sports_address_book_settings |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Address Book
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲300 | 15.26 ▲0.96 | 6.26 ▲4.06 | 43.01 ▼5.21 |
Dashboard /wp-admin | 2,406 ▲203 | 6.44 ▲0.41 | 131.87 ▲11.61 | 37.98 ▼6.13 |
Posts /wp-admin/edit.php | 2,308 ▲248 | 3.54 ▲1.49 | 49.63 ▲10.33 | 30.11 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,761 ▲213 | 22.51 ▼0.72 | 653.78 ▼12.34 | 29.21 ▼39.05 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.19 ▼0.25 | 93.91 ▼20.22 | 48.51 ▼2.25 |
Address Book /wp-admin/edit.php?post_type=address-book | 1,292 | 3.35 | 53.73 | 33.42 |
Add Address /wp-admin/post-new.php?post_type=address-book | 2,649 | 7.74 | 190.85 | 82.90 |
Sports /wp-admin/edit-tags.php?taxonomy=sport&post_type=address-book | 1,488 | 3.21 | 44.30 | 30.65 |
Cities /wp-admin/edit-tags.php?taxonomy=city&post_type=address-book | 1,485 | 3.09 | 44.48 | 30.16 |
Institutions /wp-admin/edit-tags.php?taxonomy=institution&post_type=address-book | 1,488 | 3.13 | 50.96 | 31.84 |
Settings /wp-admin/edit.php?post_type=address-book&page=options | 1,279 | 3.11 | 44.73 | 61.61 |
Uninstaller [IO: ▲0.45MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/sports-address-book/include/metabox/init.php+746
count(): Parameter must be an array or an object that implements Countable
- Incomplete uninstall procedure, leaving 41 files (0.45MB) in the plugin directory
- (new file) assets/index.php
- (new file) assets/js/debounce.js
- (new file) include/index.php
- (new file) assets/css/sports-address-book-admin.css
- (new file) images/noimage.png
- (new file) assets/css/sports-address-book.css
- (new file) assets/js/category-filter.js
- (new file) LICENSE.txt
- (new file) include/metabox/helpers/cmb_Meta_Box_Sanitize.php
- (new file) assets/js/sports-address-book.js
- ...
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=address-book&page=options
- > Warning in wp-content/plugins/sports-address-book/include/metabox/init.php+746
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sports-address-book/sports-address-book.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/sports-address-book/include/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-address-book/include/sports-address-book-options.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: search, institution, address book, address, sport...
sports-address-book/sports-address-book.php Passed 13 tests
"Address Book" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Simple address book plugin for easy search of the sport clubs, schools, institutions, etc.
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
Everything looks great! No dangerous files found in this plugin7,030 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 955 | 1,799 | 3,944 |
JavaScript | 7 | 343 | 577 | 2,268 |
CSS | 4 | 83 | 21 | 818 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 85.44 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 34 | 18.48% |
▷ Public methods | 164 | 89.13% |
▷ Protected methods | 13 | 7.07% |
▷ Private methods | 7 | 3.80% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/metabox/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
include/metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
include/metabox/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
include/metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
include/metabox/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |