Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/eelv-share-post/share.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; EELV_Share_Posts has a deprecated constructor
Server metrics [RAM: ▼0.68MB] [CPU: ▼19.31ms] Passed 4 tests
Analyzing server-side resources used by Share Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.81 ▲0.03 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.31 ▼14.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 42.70 ▼2.75 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 31.38 ▼59.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.32 ▲3.69 |
Post sharing /wp-admin/options-general.php?page=eelv_share_configuration | 3.20 | 29.39 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_share_posts |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Share Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.53 ▼1.20 | 9.41 ▲7.84 | 43.64 ▲7.54 |
Dashboard /wp-admin | 2,244 ▲64 | 5.60 ▼0.03 | 83.21 ▼16.56 | 35.60 ▼9.48 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.01 | 37.36 ▼3.60 | 32.10 ▼5.24 |
Add New Post /wp-admin/post-new.php | 6,231 ▲4,705 | 25.82 ▲2.38 | 861.85 ▲196.38 | 61.81 ▼4.47 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.26 ▲0.12 | 95.40 ▼8.05 | 44.50 ▼5.87 |
Post sharing /wp-admin/options-general.php?page=eelv_share_configuration | 932 | 1.69 | 22.89 | 25.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_share_posts
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=eelv_share_configuration
- > Notice in wp-content/plugins/eelv-share-post/admin.php+8
Undefined index: type
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eelv_share_configuration
- > Notice in wp-content/plugins/eelv-share-post/admin.php+87
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eelv-share-post/share.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eelv-share-post/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Suggested post on the dashboard), #2 (Share button in the toolbar), #3 (Embeded link)
- Donate link: Invalid URI ("")
eelv-share-post/share.php 85% from 13 tests
The primary PHP file in "Share Post" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("eelv-share-post.php" instead of "share.php")
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
There were no executable files found in this plugin1,417 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 123 | 207 | 1,058 |
SVG | 1 | 1 | 1 | 252 |
CSS | 2 | 3 | 6 | 73 |
JavaScript | 3 | 0 | 0 | 23 |
SQL | 1 | 1 | 4 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 70.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 29.27% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected