Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.27ms] Passed 4 tests
An overview of server-side resources used by Show your Support
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.69 ▼10.95 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.83 ▼3.33 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.26 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.06 ▼1.75 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.52 ▼1.03 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Show your Support
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.20 ▼1.38 | 1.71 ▼0.47 | 44.85 ▼3.09 |
Dashboard /wp-admin | 2,224 ▲36 | 5.85 ▼0.05 | 105.82 ▼3.88 | 41.63 ▲0.20 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.06 ▲0.07 | 40.07 ▲4.43 | 40.45 ▲7.61 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 17.60 ▼0.56 | 640.82 ▲25.95 | 57.61 ▲5.68 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.26 ▼0.00 | 101.44 ▼0.08 | 44.17 ▼1.56 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Exceptions/FacebookOtherException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphNode.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Http/RequestBodyMultipart.php:37
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphSessionInfo.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Exceptions/FacebookClientException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookCanvasHelper' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Helpers/FacebookPageTabHelper.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/show-your-support-for-a-wordcamp/social_media.php:16
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphEdge' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphList.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphObject.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Exceptions/FacebookServerException.php:31
- > 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 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
10 plugin tags: facebook, twitter, sys, badge, show your support...
show-your-support-for-a-wordcamp/index.php 92% from 13 tests
The main PHP script in "Show your Support" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("show-your-support-for-a-wordcamp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6,495 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,256 | 5,562 | 5,792 |
CSS | 3 | 111 | 93 | 703 |
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.25 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 74 | |
▷ Abstract classes | 3 | 4.05% |
▷ Concrete classes | 71 | 95.95% |
▷ Final classes | 0 | 0.00% |
Methods | 570 | |
▷ Static methods | 22 | 3.86% |
▷ Public methods | 524 | 91.93% |
▷ Protected methods | 27 | 4.74% |
▷ Private methods | 19 | 3.33% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 28 | |
▷ Global constants | 5 | 17.86% |
▷ Class constants | 23 | 82.14% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/template320.png | 0.52KB | 0.12KB | ▼ 77.57% |
images/template200.png | 0.51KB | 0.11KB | ▼ 78.52% |
images/overlay.png | 47.81KB | 11.99KB | ▼ 74.93% |
images/make_profile_pic.png | 12.72KB | 6.35KB | ▼ 50.11% |
images/template480.png | 1.01KB | 0.13KB | ▼ 86.80% |