Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.99ms] Passed 4 tests
Analyzing server-side resources used by KMO Social
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.94 ▼5.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.89 ▼2.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.01 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.49 ▼5.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.10 ▲3.57 |
KMO Social /wp-admin/options-general.php?page=kmo-social | 3.22 | 32.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 22 new options
New WordPress options |
---|
db_upgraded |
kmo_social_font_size |
kmo_social_out |
kmo_social_facebook |
kmo_social_height |
kmo_social_twitter |
kmo_social_top |
widget_theysaidso_widget |
kmo_social_pinterest_text |
kmo_social_in |
... |
Browser metrics Passed 4 tests
KMO Social: 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,847 ▲112 | 13.28 ▼0.99 | 1.77 ▼0.05 | 57.71 ▲7.38 |
Dashboard /wp-admin | 2,204 ▲16 | 4.88 ▲0.01 | 99.48 ▼13.04 | 41.47 ▼4.31 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.07 ▲0.05 | 40.01 ▲5.77 | 36.92 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.64 ▲0.93 | 623.09 ▼75.67 | 51.98 ▼1.36 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.21 ▲0.01 | 96.41 ▼3.76 | 41.70 ▼0.35 |
KMO Social /wp-admin/options-general.php?page=kmo-social | 1,073 | 2.27 | 27.82 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kmo-social-shares/kmo-social-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kmo-social-shares/kmo-social-options.php:3
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: facebook, tweet, pin, icons, share...
kmo-social-shares/kmo-social.php 92% from 13 tests
The principal PHP file in "KMO Social" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("kmo-social-shares.php" instead of "kmo-social.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected285 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 22 | 270 |
SVG | 1 | 0 | 0 | 13 |
CSS | 1 | 0 | 0 | 2 |
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.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There were not PNG files found in your plugin