Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.32MB] [CPU: ▲3.09ms] Passed 4 tests
Server-side resources used by Import Social Events
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.35 | 49.42 ▲7.17 |
Dashboard /wp-admin | 4.62 ▲1.28 | 51.39 ▼9.82 |
Posts /wp-admin/edit.php | 4.68 ▲1.32 | 53.55 ▲8.23 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.35 | 96.59 ▲6.78 |
Media Library /wp-admin/upload.php | 4.55 ▲1.32 | 48.23 ▲11.98 |
Event Tags /wp-admin/edit-tags.php?taxonomy=facebook_tag&post_type=facebook_events | 4.54 | 50.05 |
Facebook Events /wp-admin/edit.php?post_type=facebook_events | 4.60 | 45.67 |
Event Categories /wp-admin/edit-tags.php?taxonomy=facebook_category&post_type=facebook_events | 4.54 | 39.48 |
Add New /wp-admin/post-new.php?post_type=facebook_events | 4.70 | 62.45 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 167 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Import Social Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲171 | 13.34 ▼0.98 | 1.65 ▼0.06 | 42.84 ▼1.18 |
Dashboard /wp-admin | 2,315 ▲141 | 5.00 ▼0.67 | 93.52 ▼2.39 | 41.51 ▼2.80 |
Posts /wp-admin/edit.php | 2,222 ▲122 | 2.33 ▲0.27 | 42.21 ▲4.85 | 34.08 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,760 ▲234 | 20.57 ▼2.87 | 844.73 ▲102.01 | 38.20 ▼31.79 |
Media Library /wp-admin/upload.php | 1,514 ▲117 | 4.66 ▲0.49 | 104.19 ▲1.12 | 42.85 ▼1.57 |
Event Tags /wp-admin/edit-tags.php?taxonomy=facebook_tag&post_type=facebook_events | 1,368 | 2.02 | 34.07 | 29.78 |
Facebook Events /wp-admin/edit.php?post_type=facebook_events | 1,255 | 2.41 | 35.84 | 29.94 |
Event Categories /wp-admin/edit-tags.php?taxonomy=facebook_category&post_type=facebook_events | 1,399 | 2.02 | 34.20 | 31.35 |
Add New /wp-admin/post-new.php?post_type=facebook_events | 3,389 | 7.67 | 195.91 | 77.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\VetComponent' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Vevent.php:44
- > PHP Fatal error
Uncaught Error: Interface 'Kigkonsult\\Icalcreator\\IcalInterface' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/IcalBase.php:72
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\CalendarComponent' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Valarm.php:44
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\VetComponent' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Vtodo.php:44
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\IcalBase' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Vcalendar.php:77
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\DScomponent' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Daylight.php:39
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\CalendarComponent' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Vtimezone.php:45
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\Vcomponent' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/Vfreebusy.php:44
- > PHP Fatal error
Uncaught Error: Class 'Kigkonsult\\Icalcreator\\IcalBase' not found in wp-content/plugins/import-facebook-events/includes/lib/icalcreator/src/CalendarComponent.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/import-facebook-events/templates/ife-archive-content2.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: A description for screenshot #13 is missing in import-facebook-events/assets to your readme.txt
import-facebook-events/import-facebook-events.php Passed 13 tests
The entry point to "Import Social Events" version 1.7.6 is a PHP file that has certain tags in its header comment area
100 characters long description:
Import Social Events allows you to import Facebook ( facebook.com ) events into your WordPress site.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin33,558 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 2,054 | 10,607 | 23,554 |
CSS | 6 | 135 | 77 | 5,077 |
SVG | 6 | 0 | 3 | 2,888 |
PO File | 2 | 666 | 838 | 1,427 |
JavaScript | 4 | 57 | 8 | 420 |
Markdown | 2 | 57 | 0 | 192 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 36.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 54 | |
Classes | 54 | |
▷ Abstract classes | 5 | 9.26% |
▷ Concrete classes | 49 | 90.74% |
▷ Final classes | 9 | 18.37% |
Methods | 735 | |
▷ Static methods | 235 | 31.97% |
▷ Public methods | 602 | 81.90% |
▷ Protected methods | 12 | 1.63% |
▷ Private methods | 121 | 16.46% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 224 | |
▷ Global constants | 11 | 4.91% |
▷ Class constants | 213 | 95.09% |
▷ Public constants | 213 | 100.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
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
assets/css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
assets/css/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.32KB | 0.18KB | ▼ 42.38% |
assets/css/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |