Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/share-rail/share-rail.php+77
Undefined variable: plugins
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.64ms] Passed 4 tests
A check of server-side resources used by Share Rail
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 7.04 ▼32.14 |
Dashboard /wp-admin | 2.05 ▼1.26 | 9.12 ▼37.91 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 9.95 ▼39.82 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 10.16 ▼88.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 11.08 ▼27.44 |
Sort /wp-admin/admin.php?page=share-rail/incs/settings-sort.php | 2.05 | 10.45 |
Share Rail /wp-admin/admin.php?page=share-rail/incs/settings.php | 2.05 | 9.97 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Share Rail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 16.85 ▲2.48 | 5.21 ▲3.52 | 47.82 ▲3.24 |
Dashboard /wp-admin | 2,273 ▲96 | 7.64 ▲1.99 | 238.61 ▲138.95 | 88.71 ▲45.20 |
Posts /wp-admin/edit.php | 2,202 ▲99 | 4.59 ▲2.59 | 89.47 ▲46.35 | 54.88 ▲17.69 |
Add New Post /wp-admin/post-new.php | 6,383 ▲4,857 | 24.32 ▲1.13 | 1,048.87 ▲345.09 | 41.75 ▼8.64 |
Media Library /wp-admin/upload.php | 1,495 ▲95 | 5.99 ▲1.75 | 144.79 ▲29.25 | 96.88 ▲48.45 |
Sort /wp-admin/admin.php?page=share-rail/incs/settings-sort.php | 921 | 4.29 | 84.43 | 26.34 |
Share Rail /wp-admin/admin.php?page=share-rail/incs/settings.php | 1,685 | 8.42 | 185.83 | 67.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/share-rail/share-rail.php+77
Undefined variable: plugins
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Notice in wp-content/plugins/share-rail/share-rail.php+77
Undefined variable: plugins
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Warning in wp-content/plugins/share-rail/share-rail.php+77
Invalid argument supplied for foreach()
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/share-rail.php+187
Non-static method shareRail_Twitter::enqueue_scripts() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/share-rail.php+188
Non-static method shareRail_Facebook::enqueue_scripts() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/share-rail.php+189
Non-static method shareRail_Linkedin::enqueue_scripts() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/share-rail.php+190
Non-static method shareRail_Google::enqueue_scripts() should not be called statically
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/incs/settings.php+132
Non-static method shareRail_Google::footerScript() should not be called statically
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/incs/settings.php+146
Non-static method shareRail_Twitter::rail() should not be called statically
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/incs/settings.php+147
Non-static method shareRail_Google::rail() should not be called statically
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/incs/settings.php+148
Non-static method shareRail_Facebook::rail() should not be called statically
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Deprecated in wp-content/plugins/share-rail/incs/settings.php+149
Non-static method shareRail_Linkedin::rail() should not be called statically
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 take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/share-rail/share-rail.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/share-rail/incs/settings-sort.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/share-rail/incs/settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/share-rail/incs/head.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/share-rail/incs/rail.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/share-rail/incs/footer.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=share-rail/incs/settings.php
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Floating share in its default position), #2 (When the user scrolls the share rail stays in view)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
share-rail/share-rail.php Passed 13 tests
The main PHP file in "Share Rail" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Use this plugin to apply floating shares to your posts and pages.
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 plugin1,229 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 33 | 24 | 688 |
CSS | 1 | 38 | 156 | 541 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.13KB | 6.05KB | ▼ 45.68% |
admin/ui/images/bg_fallback.png | 3.63KB | 0.30KB | ▼ 91.72% |
img/share.png | 0.67KB | 0.79KB | 0.00% |
admin/ui/images/icon_sprite.png | 3.14KB | 2.30KB | ▼ 26.70% |
screenshot-2.png | 7.46KB | 4.54KB | ▼ 39.18% |