Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.02ms] Passed 4 tests
Server-side resources used by Ruven Themes: Sharing Links
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.49 ▼9.15 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.62 ▼3.20 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.09 ▲4.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.13 ▲3.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.37 ▲0.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-sharing-links/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/ruven-themes-sharing-links/assets/icon-128\303\227128.png"
- (new file) "wp-content/plugins/ruven-themes-sharing-links/assets/icon-256\303\227256.png"
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Ruven Themes: Sharing Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.35 ▼0.95 | 1.80 ▼0.27 | 44.08 ▼1.30 |
Dashboard /wp-admin | 2,203 ▲12 | 5.80 ▲0.91 | 94.77 ▼20.46 | 40.19 ▼1.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.04 | 40.35 ▲4.41 | 35.70 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.45 ▲0.30 | 623.14 ▼46.40 | 56.70 ▲5.18 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▲0.00 | 95.52 ▼3.09 | 42.05 ▼1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
6 plugin tags: social, google, sharing, facebook, twitter...
ruven-themes-sharing-links/ruven-themes-sharing-links.php Passed 13 tests
Analyzing the main PHP file in "Ruven Themes: Sharing Links" version 1.1
87 characters long description:
Extends the functionality of Ruven Themes by providing sharing links via function call.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected51 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 23 | 51 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128×128.png | 5.43KB | 2.59KB | ▼ 52.22% |
assets/icon-256×256.png | 4.72KB | 1.81KB | ▼ 61.65% |