Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.85MB] [CPU: ▼44.96ms] Passed 4 tests
An overview of server-side resources used by Genesis Staff Bio Grid
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.12 ▼0.35 | 17.53 ▼22.84 |
Dashboard /wp-admin | 3.17 ▼0.14 | 19.39 ▼29.04 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 20.03 ▼46.05 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 22.38 ▼81.91 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 22.21 ▼14.43 |
Staff Positions /wp-admin/edit-tags.php?taxonomy=staff-position&post_type=staff-member | 3.17 | 20.42 |
All Staff Members /wp-admin/edit.php?post_type=staff-member | 3.17 | 19.38 |
Add New /wp-admin/post-new.php?post_type=staff-member | 3.17 | 16.70 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Genesis Staff Bio Grid: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 14.82 ▲0.27 | 1.72 ▼0.06 | 44.28 ▲0.80 |
Dashboard /wp-admin | 2,363 ▲186 | 6.20 ▲0.59 | 112.73 ▲20.12 | 44.56 ▲1.39 |
Posts /wp-admin/edit.php | 2,294 ▲194 | 3.27 ▲1.29 | 48.14 ▲11.85 | 31.91 ▼8.04 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 23.74 ▲0.70 | 659.88 ▼24.59 | 34.82 ▼31.99 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.15 ▼0.03 | 79.43 ▼33.03 | 42.16 ▼5.65 |
Staff Positions /wp-admin/edit-tags.php?taxonomy=staff-position&post_type=staff-member | 1,468 | 3.25 | 39.04 | 29.10 |
All Staff Members /wp-admin/edit.php?post_type=staff-member | 1,275 | 3.23 | 46.28 | 28.98 |
Add New /wp-admin/post-new.php?post_type=staff-member | 2,442 | 8.13 | 205.46 | 78.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/genesis-staff-bio-grid/lib/metabox/init.php+746
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=staff-member
- > Warning in wp-content/plugins/genesis-staff-bio-grid/lib/metabox/init.php+746
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/genesis-staff-bio-grid/lib/metabox/tests/phpunit/includes/bootstrap.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-staff-bio-grid/lib/templates/archive-staff-member.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-staff-bio-grid/lib/templates/single-staff-member.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-staff-bio-grid/lib/register_staff_member_post_type.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-staff-bio-grid/lib/register_staff_position_taxonomy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/genesis-staff-bio-grid/lib/shortcode.php:169
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/genesis-staff-bio-grid/staff-bio-grid.php:36
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/genesis-staff-bio-grid/lib/metabox/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/genesis-staff-bio-grid/lib/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-staff-bio-grid/lib/template_picker.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-staff-bio-grid/lib/metabox/example-functions.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: staff, bio, thickbox, officers, genesis...
genesis-staff-bio-grid/staff-bio-grid.php 92% from 13 tests
Analyzing the main PHP file in "Genesis Staff Bio Grid" version 1.0.4
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("genesis-staff-bio-grid.php" instead of "staff-bio-grid.php")
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 plugin5,942 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 637 | 1,169 | 2,389 |
JavaScript | 5 | 312 | 403 | 2,246 |
CSS | 4 | 118 | 37 | 912 |
Markdown | 3 | 88 | 0 | 288 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 57.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 34 | 25.37% |
▷ Public methods | 132 | 98.51% |
▷ Protected methods | 2 | 1.49% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
lib/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/metabox/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |