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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.01ms] Passed 4 tests
Server-side resources used by Content Resharer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.06 ▲1.19 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.99 ▼2.63 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.12 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 77.37 ▼15.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.36 ▲0.78 |
Help /wp-admin/admin.php?page=wpsite-content-resharer-help | 3.31 | 31.14 |
Accounts /wp-admin/admin.php?page=wpsite-content-resharer-dashboard | 3.50 | 36.80 |
Exclude Posts /wp-admin/admin.php?page=wpsite-content-resharer-exclude-posts | 3.29 | 35.55 |
Messages /wp-admin/admin.php?page=wpsite-content-resharer-messages | 3.28 | 30.96 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
wpsite_twitter_reshare_settings |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
wpsite_twitter_reshare_version |
Browser metrics Passed 4 tests
Checking browser requirements for Content Resharer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.39 ▼1.00 | 1.74 ▼0.27 | 40.08 ▼4.49 |
Dashboard /wp-admin | 2,249 ▲61 | 5.84 ▼0.09 | 97.50 ▼16.06 | 71.50 ▲29.61 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 1.99 ▼0.05 | 35.36 ▼0.96 | 32.78 ▼1.30 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,717 | 18.92 ▼4.50 | 965.68 ▲291.21 | 67.42 ▲14.22 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.22 ▼0.02 | 94.87 ▼4.61 | 63.60 ▲18.35 |
Help /wp-admin/admin.php?page=wpsite-content-resharer-help | 1,291 | 2.36 | 41.10 | 74.50 |
Accounts /wp-admin/admin.php?page=wpsite-content-resharer-dashboard | 1,261 | 2.62 | 46.15 | 41.06 |
Exclude Posts /wp-admin/admin.php?page=wpsite-content-resharer-exclude-posts | 1,160 | 2.48 | 35.06 | 36.45 |
Messages /wp-admin/admin.php?page=wpsite-content-resharer-messages | 1,236 | 2.49 | 35.99 | 38.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpsite-content-resharer/admin/footer.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-content-resharer/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpsite-content-resharer/admin/sidebar.php:5
- > PHP Fatal error
Uncaught Error: Class 'Resharer_Base' not found in wp-content/plugins/wpsite-content-resharer/include/class-resharer-twitter-metabox.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-content-resharer/admin/header.php:7
- > PHP Warning
Use of undefined constant WPSITE_TWITTER_RESHARE_PLUGIN_DIR - assumed 'WPSITE_TWITTER_RESHARE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpsite-content-resharer/include/connect-accounts/connect-twitter.php on line 2
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wpsite-content-resharer/include/reshare-accounts/reshare-twitter.php:2
- > PHP Warning
Use of undefined constant WPSITE_TWITTER_RESHARE_PLUGIN_DIR - assumed 'WPSITE_TWITTER_RESHARE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpsite-content-resharer/include/reshare-accounts/reshare-twitter.php on line 2
- > PHP Fatal error
require(): Failed opening required 'WPSITE_TWITTER_RESHARE_PLUGIN_DIR/include/api_src/twitteroauth/twitteroauth.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpsite-content-resharer/include/connect-accounts/connect-twitter.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-content-resharer/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpsite-content-resharer/admin/messages_add_edit.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpsite-content-resharer-messages
- > Network (severe)
wp-content/plugins/wpsite-content-resharer/img/logo.png%20style=width:20px;padding-top:%206px; - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpsite-content-resharer-messages
- > Network (severe)
http://feeds.feedburner.com/99robots?format=sigpro - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (41 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Please fix this invalid url: ""
wpsite-content-resharer/wpsite-content-resharer.php 85% from 13 tests
The main PHP file in "Content Resharer" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,113 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 803 | 1,019 | 2,979 |
SVG | 2 | 0 | 0 | 928 |
CSS | 4 | 105 | 27 | 517 |
PO File | 1 | 133 | 145 | 504 |
JavaScript | 4 | 45 | 54 | 185 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 21 | 15.22% |
▷ Public methods | 106 | 76.81% |
▷ Protected methods | 16 | 11.59% |
▷ Private methods | 16 | 11.59% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rainbow-strip-hz-wide.png | 3.24KB | 0.57KB | ▼ 82.36% |
img/remove_account.png | 2.85KB | 0.28KB | ▼ 90.35% |
img/marker.png | 0.64KB | 0.71KB | 0.00% |
img/ad-plugin-request.png | 14.13KB | 5.42KB | ▼ 61.62% |
img/logo-only-80h.png | 18.26KB | 4.36KB | ▼ 76.14% |