Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.90ms] Passed 4 tests
Analyzing server-side resources used by WP Share
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.18 ▼2.25 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.28 ▲2.76 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.38 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 120.52 ▲25.75 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.40 ▲1.50 |
General /wp-admin/admin.php?page=share-options | 3.25 | 34.23 |
WP Share /wp-admin/options-general.php?page=wp-share | 3.23 | 36.59 |
Server storage [IO: ▲0.46MB] [DB: ▲0.80MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Share
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.88 ▼0.46 | 6.18 ▲3.82 | 42.04 ▼5.07 |
Dashboard /wp-admin | 2,228 ▲58 | 5.85 ▲0.29 | 118.32 ▲9.37 | 43.60 ▲1.66 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.03 | 43.12 ▼2.20 | 36.81 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6,241 ▲4,710 | 25.90 ▲2.84 | 952.82 ▲336.90 | 71.22 ▲14.92 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.05 | 116.83 ▼0.36 | 48.29 ▼1.51 |
General /wp-admin/admin.php?page=share-options | 1,107 | 2.04 | 26.48 | 32.83 |
WP Share /wp-admin/options-general.php?page=wp-share | 1,098 | 2.18 | 48.14 | 39.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.80MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-share/admin/views/admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
6 plugin tags: facebook, pinterest, social buttons, sodial sharing buttons, twitter...
wp-share/wp-share.php Passed 13 tests
The entry point to "WP Share" version 1.0.0 is a PHP file that has certain tags in its header comment area
21 characters long description:
Social sharing plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,315 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 204 | 433 | 649 |
SVG | 1 | 0 | 0 | 399 |
CSS | 2 | 4 | 0 | 167 |
PO File | 1 | 25 | 25 | 71 |
JavaScript | 2 | 9 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 2 | 3.33% |
▷ Public methods | 54 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin