Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/right-intel/libs/Ri/Thumbnails.php+9
Non-static method Ri_Post::hasAnyRightIntelPosts() should not be called statically
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.69ms] Passed 4 tests
This is a short check of server-side resources used by Sharpr
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 39.27 ▲1.89 |
Dashboard /wp-admin | 3.42 ▲0.11 | 42.47 ▼2.12 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 43.87 ▲1.77 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 74.74 ▼21.50 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 34.69 ▼0.91 |
Sharpr /wp-admin/options.php?page=sharpr_disconnect_account | 3.30 | 29.78 |
Sharpr /wp-admin/options.php?page=sharpr_post_preview | 3.30 | 32.10 |
Sharpr /wp-admin/options-general.php?page=sharpr_settings | 3.25 | 28.10 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 58 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_ri_credentials |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
right_intel_styling_bubble_type |
right_intel_semver |
right_intel_version |
right_intel_thumbnails_v3_8 |
theysaidso_admin_options |
right_intel_styling_use_oswald |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Sharpr
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.23 ▼1.14 | 4.41 ▲2.78 | 44.53 ▲1.93 |
Dashboard /wp-admin | 2,218 ▲33 | 5.86 ▼0.03 | 106.79 ▼4.95 | 39.58 ▼0.61 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.05 ▲0.05 | 38.67 ▼0.05 | 40.39 ▲7.83 |
Add New Post /wp-admin/post-new.php | 1,525 ▼9 | 23.73 ▲0.54 | 681.26 ▼0.22 | 69.79 ▲13.93 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▼0.16 | 96.94 ▼7.58 | 42.29 ▼6.53 |
Sharpr /wp-admin/options.php?page=sharpr_disconnect_account | 1,043 | 1.69 | 26.05 | 31.60 |
Sharpr /wp-admin/options.php?page=sharpr_post_preview | 50 | 0.44 | 0.09 | 18.55 |
Sharpr /wp-admin/options-general.php?page=sharpr_settings | 1,046 | 1.76 | 22.96 | 32.92 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 16 options
- can_compress_scripts
- right_intel_styling_color_text
- right_intel_semver
- db_upgraded
- right_intel_styling_image_display_type
- right_intel_styling_use_oswald
- right_intel_thumbnails_v3_8
- right_intel_styling_bubble_type
- right_intel_styling_color_bubble
- right_intel_styling_image_float
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options.php?page=sharpr_disconnect_account
- > Notice in wp-content/plugins/right-intel/pages/controllers/disconnect_account.php+3
Undefined index: account_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sharpr_settings
- > Notice in wp-content/plugins/right-intel/pages/controllers/list_accounts.php+4
Undefined index: connected
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sharpr_settings
- > Notice in wp-content/plugins/right-intel/pages/controllers/list_accounts.php+5
Undefined index: disconnected
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/right-intel/pages/views/regenerate_thumbnails.tpl.php
- > /wp-content/plugins/right-intel/css/dynamic.css.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ri_Rest' not found in wp-content/plugins/right-intel/endpoints/get_publish_options.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ri_Rest' not found in wp-content/plugins/right-intel/endpoints/receiver.php:3
- > PHP Notice
Undefined variable: validInstall in wp-content/plugins/right-intel/pages/views/list_accounts.tpl.php on line 74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/right-intel/right-intel.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/right-intel/pages/controllers/post_preview.php:4
- > PHP Fatal error
Uncaught Error: Class 'Ri_Thumbnails' not found in wp-content/plugins/right-intel/pages/controllers/regenerate_thumbnails.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ri_Rest' not found in wp-content/plugins/right-intel/endpoints/connect_account.php:3
- > PHP Notice
Undefined variable: postIds in wp-content/plugins/right-intel/pages/views/regenerate_thumbnails.tpl.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ri_Thumbnails' not found in wp-content/plugins/right-intel/pages/controllers/regenerate_thumbnail_by_id.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ri_Rest' not found in wp-content/plugins/right-intel/endpoints/disconnect_account_remote.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options.php?page=sharpr_post_preview
- > Network (severe)
https://sharpr.com/blog-bubble.php?color=f26522 - Failed to load resource: the server responded with a status of 500 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (How Sharpr posts look on a WordPress blog.), #2 (Go to the Settings > Sharpr page to connect your blog to Sharpr.), #3 (On the hub dashboard, hover over the gear icon next to a post and click "Send to blog...".), #4 (Before the post is sent to WordPress you can edit the title, insight bubble text, description and assign WordPress categories and tags. Other WordPress options such as author and publish date are available as well.)
right-intel/index.php 92% from 13 tests
The entry point to "Sharpr" version 4.4.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("right-intel.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,467 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 320 | 480 | 2,665 |
SVG | 2 | 0 | 0 | 568 |
CSS | 8 | 0 | 1 | 200 |
JavaScript | 1 | 0 | 1 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 50 | 48.08% |
▷ Public methods | 102 | 98.08% |
▷ Protected methods | 2 | 1.92% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 46 | 70.77% |
▷ Anonymous functions | 19 | 29.23% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.10MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 290.63KB | 81.31KB | ▼ 72.02% |
img/logo-small.png | 3.25KB | 2.22KB | ▼ 31.47% |
img/logo-r-16.png | 0.73KB | 0.71KB | ▼ 3.86% |
screenshot-2.png | 272.73KB | 74.13KB | ▼ 72.82% |
screenshot-4.png | 256.27KB | 79.10KB | ▼ 69.13% |