Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.42MB] [CPU: ▼1.80ms] Passed 4 tests
Analyzing server-side resources used by EM Social Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 51.52 ▲12.95 |
Dashboard /wp-admin | 3.73 ▲0.38 | 52.19 ▼11.47 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 49.66 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 100.82 ▲0.56 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.35 ▲3.12 |
Social Media /wp-admin/options-general.php?page=em-social-media | 3.76 | 36.68 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_emsm_widget |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for EM Social Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.17 ▼1.20 | 4.41 ▲2.45 | 42.01 ▼0.53 |
Dashboard /wp-admin | 2,217 ▲46 | 5.88 ▲0.13 | 92.47 ▼16.15 | 44.58 ▼3.27 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 2.36 ▲0.35 | 35.08 ▼5.01 | 31.89 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,548 ▲11 | 23.37 ▲0.16 | 611.61 ▼34.79 | 33.04 ▼21.27 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.49 ▲0.29 | 97.66 ▼11.90 | 44.73 ▼0.90 |
Social Media /wp-admin/options-general.php?page=em-social-media | 4,876 | 2.92 | 48.18 | 32.81 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_emsm_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 5× 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/em-social-media/functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/em-social-media/admin/admin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/em-social-media/admin/pages/settings.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/em-social-media/widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/em-social-media/shortcode.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: "erikdmitchell@gmail.com"
em-social-media/em-social-media.php 85% from 13 tests
This is the main PHP file of "EM Social Media" version 0.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Success! There were no dangerous files found in this plugin3,075 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 6 | 75 | 139 | 228 |
JavaScript | 1 | 29 | 56 | 111 |
CSS | 3 | 0 | 3 | 65 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 1 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected