Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.20ms] Passed 4 tests
An overview of server-side resources used by Branded Sharebox by Shorten.REST
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.44 ▼3.34 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.21 ▼18.48 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.27 ▲4.81 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.50 ▼8.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.23 ▲1.66 |
Manage URLs /wp-admin/admin.php?page=branded_sharebox_manage_posts | 3.31 | 33.74 |
Branded Sharebox /wp-admin/admin.php?page=branded_sharebox | 3.35 | 37.35 |
Social Networks /wp-admin/admin.php?page=branded_sharebox_social_networks | 3.29 | 33.26 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Branded Sharebox by Shorten.REST: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲214 | 13.62 ▼0.76 | 8.60 ▲6.67 | 39.17 ▼3.83 |
Dashboard /wp-admin | 2,250 ▲76 | 5.83 ▲0.22 | 89.21 ▼10.69 | 38.52 ▼5.70 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.35 ▲0.31 | 40.37 ▲4.74 | 38.50 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 18.16 ▲0.65 | 684.75 ▼9.88 | 33.81 ▼19.08 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.37 ▲0.07 | 102.32 ▲6.15 | 46.61 ▲1.95 |
Manage URLs /wp-admin/admin.php?page=branded_sharebox_manage_posts | 898 | 1.97 | 27.94 | 36.90 |
Branded Sharebox /wp-admin/admin.php?page=branded_sharebox | 1,480 | 2.45 | 50.42 | 29.09 |
Social Networks /wp-admin/admin.php?page=branded_sharebox_social_networks | 966 | 2.09 | 29.16 | 49.57 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=branded_sharebox_manage_posts
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=branded_sharebox_manage_posts
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=branded_sharebox_manage_posts
- > Notice in wp-content/plugins/branded-sharebox/option-pages/manage-urls-page.php+25
Undefined variable: returnArr
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 take a closer look at the following
- 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(BRANDED_SHAREBOX_PLUGIN_DIRPEAR/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/branded-sharebox/HTTP/Request2/Exception.php on line 24
- > PHP Warning
Use of undefined constant BRANDED_SHAREBOX_PLUGIN_DIR - assumed 'BRANDED_SHAREBOX_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/branded-sharebox/HTTP/Request2/Response.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'BRANDED_SHAREBOX_PLUGIN_DIRHTTP/Request2/Adapter.php' (include_path='.:/usr/share/php') in wp-content/plugins/branded-sharebox/HTTP/Request2/Adapter/Mock.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/branded-sharebox/option-pages/main-page.php:4
- > PHP Warning
require_once(BRANDED_SHAREBOX_PLUGIN_DIRHTTP/Request2/Adapter.php): failed to open stream: No such file or directory in wp-content/plugins/branded-sharebox/HTTP/Request2/Adapter/Mock.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/branded-sharebox/option-pages/social-networks-page.php:8
- > PHP Warning
require_once(BRANDED_SHAREBOX_PLUGIN_DIRHTTP/Request2/Adapter.php): failed to open stream: No such file or directory in wp-content/plugins/branded-sharebox/HTTP/Request2/Adapter/Curl.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'BRANDED_SHAREBOX_PLUGIN_DIRHTTP/Request2/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/branded-sharebox/HTTP/Request2/Observer/Log.php on line 25
- > PHP Warning
require_once(BRANDED_SHAREBOX_PLUGIN_DIRHTTP/Request2/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/branded-sharebox/HTTP/Request2/SocketWrapper.php on line 22
- > PHP Warning
Use of undefined constant BRANDED_SHAREBOX_PLUGIN_DIR - assumed 'BRANDED_SHAREBOX_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/branded-sharebox/HTTP/Request2/Adapter/Socket.php on line 22
- > PHP Warning
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: social media, sharebox, short url, url shortener, share links...
branded-sharebox/index.php 85% from 13 tests
This is the main PHP file of "Branded Sharebox by Shorten.REST" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("branded-sharebox.php" instead of "index.php")
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,971 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 631 | 3,052 | 4,606 |
CSS | 2 | 36 | 3 | 288 |
JavaScript | 2 | 16 | 5 | 76 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 42.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 5.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 20 | 11.11% |
▷ Public methods | 133 | 73.89% |
▷ Protected methods | 37 | 20.56% |
▷ Private methods | 10 | 5.56% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 34 | |
▷ Global constants | 2 | 5.88% |
▷ Class constants | 32 | 94.12% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected