Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.83ms] Passed 4 tests
This is a short check of server-side resources used by Metro Share
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.40 ▼2.20 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.05 ▼3.46 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.57 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 82.53 ▼9.69 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.77 ▲0.51 |
Sharing Icons /wp-admin/options-general.php?page=metro-share/metro-share.php | 3.25 | 29.68 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
metroshare_settings |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Metro Share
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.57 ▼0.57 | 8.45 ▲6.71 | 38.97 ▼2.03 |
Dashboard /wp-admin | 2,202 ▲14 | 4.91 ▼1.00 | 106.57 ▼9.08 | 37.13 ▼5.30 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.22 ▲0.20 | 34.79 ▼0.59 | 30.66 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.08 ▼0.32 | 592.51 ▼75.69 | 32.83 ▼32.06 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.23 ▲0.06 | 96.64 ▼3.80 | 41.58 ▼5.76 |
Sharing Icons /wp-admin/options-general.php?page=metro-share/metro-share.php | 1,029 | 2.05 | 31.01 | 41.75 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- metroshare_settings
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=metro-share/metro-share.php
- > 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/options-general.php?page=metro-share/metro-share.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/metro-share/metro-share.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in metro-share/assets to your readme.txt
metro-share/metro-share.php Passed 13 tests
The entry point to "Metro Share" version 0.5.10 is a PHP file that has certain tags in its header comment area
48 characters long description:
Super fast and super customizable social sharing
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
Everything looks great! No dangerous files found in this plugin479 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 61 | 116 | 386 |
CSS | 2 | 1 | 0 | 82 |
JavaScript | 2 | 1 | 1 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.40MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/share-icons.png | 4.17KB | 2.46KB | ▼ 40.98% |
screenshot-1.png | 133.48KB | 56.66KB | ▼ 57.55% |
screenshot-2.png | 181.15KB | 178.50KB | ▼ 1.46% |
assets/metronet-icon.png | 1.41KB | 0.58KB | ▼ 59.00% |
assets/icons.png | 6.07KB | 3.05KB | ▼ 49.73% |