Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼17.67ms] Passed 4 tests
This is a short check of server-side resources used by Sponsors
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 42.56 ▲3.05 |
Dashboard /wp-admin | 3.67 ▲0.32 | 45.04 ▼19.60 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 44.18 ▼4.67 |
Add New Post /wp-admin/post-new.php | 5.21 ▼0.68 | 50.88 ▼49.44 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 40.13 ▲4.44 |
Documentation /wp-admin/edit.php?post_type=sponsors&page=wp-sponsors-docs | 3.56 | 34.02 |
Add New /wp-admin/post-new.php?post_type=sponsors | 3.74 | 53.76 |
All Sponsors /wp-admin/edit.php?post_type=sponsors | 3.57 | 36.65 |
Categories /wp-admin/edit-tags.php?taxonomy=sponsor_categories&post_type=sponsors | 3.52 | 33.18 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_sponsors_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
sponsors_db_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Sponsors: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.66 ▼0.72 | 6.30 ▲4.53 | 44.74 ▲1.46 |
Dashboard /wp-admin | 2,245 ▲57 | 5.91 ▲1.04 | 97.79 ▼21.36 | 39.72 ▼2.52 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.04 ▼0.01 | 35.18 ▲1.00 | 33.11 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6,388 ▲4,869 | 27.95 ▲4.45 | 923.86 ▲276.16 | 40.23 ▼10.42 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.21 ▼0.09 | 123.81 ▲11.83 | 47.54 ▼2.22 |
Documentation /wp-admin/edit.php?post_type=sponsors&page=wp-sponsors-docs | 1,463 | 2.07 | 23.53 | 31.89 |
Add New /wp-admin/post-new.php?post_type=sponsors | 2,418 | 7.66 | 177.82 | 65.99 |
All Sponsors /wp-admin/edit.php?post_type=sponsors | 1,133 | 1.94 | 30.70 | 28.17 |
Categories /wp-admin/edit-tags.php?taxonomy=sponsor_categories&post_type=sponsors | 1,298 | 2.15 | 27.52 | 27.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- sponsors_db_version
- widget_recent-comments
- widget_sponsors_widget
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-sponsors/admin/partials/wp-sponsors-admin-display.php
- > /wp-content/plugins/wp-sponsors/public/partials/wp-sponsors-public-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wp-sponsors/admin/partials/documentation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wp-sponsors/admin/partials/meta-boxes/sponsor-info.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-sponsors/includes/class-wp-sponsors-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-sponsors/admin/partials/meta-boxes/ss-info.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: images, post type, sponsors, partners
wp-sponsors/wp-sponsors.php Passed 13 tests
The main file in "Sponsors" v. 3.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Add links and logo's for your sponsors/partners/etc to your sidebars and posts with our widget and shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,739 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 311 | 769 | 1,649 |
JavaScript | 9 | 47 | 7 | 451 |
PO File | 3 | 129 | 141 | 339 |
Sass | 4 | 38 | 0 | 295 |
CSS | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 11 | 16.67% |
▷ Public methods | 55 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 16.67% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin