Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.29MB] [CPU: ▼21.04ms] Passed 4 tests
An overview of server-side resources used by ShareMe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 35.32 ▼8.24 |
Dashboard /wp-admin | 3.40 ▲0.01 | 51.79 ▼15.42 |
Posts /wp-admin/edit.php | 3.51 ▲0.12 | 51.11 ▼0.25 |
Add New Post /wp-admin/post-new.php | 4.69 ▼1.24 | 43.63 ▼60.26 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 42.37 ▲6.18 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 82 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_sm_social_list |
wp_sm_config |
New WordPress options |
---|
sm_auto_display |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShareMe
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.35 ▲0.00 | 1.70 ▼0.04 | 39.87 ▼1.60 |
Dashboard /wp-admin | 2,200 ▲20 | 5.56 ▼0.13 | 89.52 ▼2.82 | 72.78 ▲31.04 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.12 ▲0.11 | 40.65 ▼2.99 | 32.93 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,694 ▲166 | 22.13 ▼0.97 | 735.44 ▲17.62 | 52.66 ▼2.15 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.15 ▼0.13 | 94.89 ▼10.75 | 76.60 ▲35.71 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- sm_auto_display
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant SM_THEMES_PATH - assumed 'SM_THEMES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/share-me/admin-share-me.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/share-me/admin-share-me.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/share-me/share-me.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: icons, social networks, posts, share
share-me/share-me.php Passed 13 tests
"ShareMe" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Share WP posts on multiple Social Networks with different icons sets
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected397 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 69 | 59 | 319 |
Markdown | 1 | 11 | 0 | 45 |
CSS | 2 | 1 | 2 | 26 |
JavaScript | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 10 | 100.00% |
▷ Public methods | 10 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
74 PNG files occupy 0.30MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/elegent/tumblr.png | 3.27KB | 2.01KB | ▼ 38.34% |
assets/css/images/logo_small.png | 0.61KB | 0.68KB | 0.00% |
assets/images/elegent/googleplus.png | 4.68KB | 2.38KB | ▼ 49.12% |
assets/images/cercle/mail.png | 1.25KB | 1.04KB | ▼ 17.38% |
assets/images/leaf/linkedin.png | 0.70KB | 0.51KB | ▼ 27.25% |