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.01MB] [CPU: ▼1.00ms] Passed 4 tests
Analyzing server-side resources used by Rusty Social Image Share
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.36 ▼0.63 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.46 ▼1.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.84 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.43 ▼2.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.37 ▲3.85 |
Rusty Image Share /wp-admin/tools.php?page=rusty-fb-share | 3.21 | 30.69 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Rusty Social Image Share
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.12 | 3.90 ▲1.44 | 39.76 ▼9.97 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▲1.02 | 105.53 ▲1.01 | 40.97 ▼5.30 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 38.15 ▲3.46 | 34.36 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 23.32 ▲0.19 | 587.07 ▼78.18 | 53.81 ▼1.57 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.03 | 97.66 ▼0.23 | 41.57 ▼2.59 |
Rusty Image Share /wp-admin/tools.php?page=rusty-fb-share | 933 | 2.35 | 40.58 | 26.85 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- 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 | 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rusty-image-share/rusty-image-share.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Select the background for your share image within the Tools Menu), #2 (The plugin at work sharing your post thumbnail to Facebook)
rusty-image-share/rusty-image-share.php Passed 13 tests
The main PHP script in "Rusty Social Image Share" version 1.0 is automatically included on every request by WordPress
73 characters long description:
Keep your original Featured Image proportions whilst sharing to Facebook.
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
Success! There were no dangerous files found in this plugin187 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 38 | 176 |
CSS | 1 | 1 | 0 | 6 |
JavaScript | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 25.22KB | 10.54KB | ▼ 58.21% |
screenshot-1.png | 27.78KB | 10.66KB | ▼ 61.62% |