Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.46MB] [CPU: ▲2.13ms] Passed 4 tests
A check of server-side resources used by Surplus Essentials
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.91 ▲1.45 | 45.45 ▲0.23 |
Dashboard /wp-admin | 4.81 ▲1.46 | 57.63 ▼5.18 |
Posts /wp-admin/edit.php | 4.82 ▲1.46 | 65.92 ▲18.23 |
Add New Post /wp-admin/post-new.php | 7.34 ▲1.45 | 102.02 ▲0.83 |
Media Library /wp-admin/upload.php | 4.70 ▲1.46 | 45.61 ▲12.63 |
Instructor Categories /wp-admin/edit-tags.php?taxonomy=instructors&post_type=st_instructor | 4.72 | 47.46 |
Surplus Essentials /wp-admin/themes.php?page=surplus_essentials_settings | 4.84 | 43.17 |
Event Categories /wp-admin/edit-tags.php?taxonomy=events&post_type=st_event | 4.72 | 46.12 |
All Event /wp-admin/edit.php?post_type=st_event | 4.78 | 46.86 |
Add New /wp-admin/post-new.php?post_type=st_event | 4.85 | 58.33 |
Course Categories /wp-admin/edit-tags.php?taxonomy=courses&post_type=st_course | 4.72 | 48.40 |
All Instructor /wp-admin/edit.php?post_type=st_instructor | 4.78 | 49.23 |
All Course /wp-admin/edit.php?post_type=st_course | 4.78 | 50.23 |
Add New /wp-admin/post-new.php?post_type=st_instructor | 4.85 | 58.83 |
Add New /wp-admin/post-new.php?post_type=st_course | 4.85 | 59.30 |
Server storage [IO: ▲2.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 24 new options
New WordPress options |
---|
widget_ste_icontext_widget |
widget_ste_popular_post |
widget_theysaidso_widget |
widget_ste_cta_widget |
widget_ste_event_widget |
widget_ste_pro_recent_post |
widget_ste_testimonial_widget |
widget_ste_advertisement_widget |
widget_recent-posts |
widget_ste_twitter_feeds_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Surplus Essentials
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 7,960 ▲5,189 | 18.45 ▲4.07 | 22.43 ▲20.52 | 46.40 ▲3.73 |
Dashboard /wp-admin | 7,201 ▲5,016 | 10.77 ▲4.91 | 198.63 ▲99.23 | 41.56 ▲6.10 |
Posts /wp-admin/edit.php | 7,111 ▲5,025 | 6.82 ▲4.77 | 111.39 ▲76.91 | 35.69 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,899 | 22.65 ▼0.52 | 677.52 ▼1.17 | 43.31 ▼5.59 |
Media Library /wp-admin/upload.php | 6,248 ▲4,866 | 6.22 ▲2.04 | 128.93 ▲32.85 | 42.61 ▼0.84 |
Instructor Categories /wp-admin/edit-tags.php?taxonomy=instructors&post_type=st_instructor | 6,326 | 6.57 | 99.47 | 30.08 |
Surplus Essentials /wp-admin/themes.php?page=surplus_essentials_settings | 6,154 | 6.43 | 92.75 | 55.47 |
Event Categories /wp-admin/edit-tags.php?taxonomy=events&post_type=st_event | 6,323 | 6.74 | 88.43 | 27.81 |
All Event /wp-admin/edit.php?post_type=st_event | 6,263 | 6.95 | 96.80 | 34.30 |
Add New /wp-admin/post-new.php?post_type=st_event | 5,417 | 7.79 | 256.63 | 70.04 |
Course Categories /wp-admin/edit-tags.php?taxonomy=courses&post_type=st_course | 6,323 | 6.74 | 90.51 | 28.41 |
All Instructor /wp-admin/edit.php?post_type=st_instructor | 6,178 | 6.79 | 103.43 | 32.18 |
All Course /wp-admin/edit.php?post_type=st_course | 6,176 | 6.80 | 95.94 | 29.51 |
Add New /wp-admin/post-new.php?post_type=st_instructor | 5,417 | 8.00 | 231.58 | 59.71 |
Add New /wp-admin/post-new.php?post_type=st_course | 5,412 | 7.68 | 233.15 | 58.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 24 options in the database
- widget_ste_icontext_widget
- widget_ste_custom_categories
- widget_ste_facebook_page_widget
- widget_ste_testimonial_widget
- db_upgraded
- widget_ste_cta_widget
- widget_recent-posts
- widget_ste_featured_page_widget
- widget_ste_stat_counter_widget
- widget_ste_image_text_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-facebook-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-featured-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-stat-counter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-recent-post.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-socialmedia.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-client-logo.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-contact.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-twitter-feeds.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-image-text.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surplus-essentials/includes/widgets/widget-faqs.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: widgets, surplus, essentials, custom post type
surplus-essentials/surplus-essentials.php Passed 13 tests
The main PHP file in "Surplus Essentials" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
Surplus Essentials Provides necessary features to extend WordPress functionality and for better blogging experience.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,177 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 893 | 1,412 | 6,653 |
CSS | 9 | 290 | 79 | 1,885 |
JavaScript | 11 | 89 | 65 | 639 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 6.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 2 | 1.30% |
▷ Public methods | 149 | 96.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.25% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/image/no-featured-img.png | 4.16KB | 1.39KB | ▼ 66.51% |
admin/images/ui-icons_333333_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
admin/css/chosen-sprite.png | 0.51KB | 0.88KB | 0.00% |
admin/images/ui-icons_999999_256x240.png | 6.93KB | 4.18KB | ▼ 39.62% |