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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.21ms] Passed 4 tests
This is a short check of server-side resources used by Embed SharePoint OneDrive Library/Documents/Files
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.74 ▲0.53 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.18 ▼3.99 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.41 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.79 ▼3.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.50 ▲3.80 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
mo_sps_feedback_config |
Browser metrics Passed 4 tests
Checking browser requirements for Embed SharePoint OneDrive Library/Documents/Files
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲47 | 14.17 ▼0.54 | 1.75 ▲0.10 | 42.92 ▼0.92 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.05 | 96.05 ▲8.32 | 68.74 ▲29.33 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.01 ▼0.00 | 37.48 ▲0.89 | 34.28 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6,211 ▲4,682 | 26.13 ▲2.95 | 902.06 ▲309.96 | 36.15 ▼10.35 |
Media Library /wp-admin/upload.php | 1,447 ▲44 | 4.31 ▲0.15 | 98.53 ▲1.85 | 80.71 ▲38.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- mo_sps_feedback_config
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/embed-sharepoint-onedrive-documents/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/embed-sharepoint-onedrive-documents/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function MoSharePointObjectSync\\add_action() in wp-content/plugins/embed-sharepoint-onedrive-documents/embed-sharepoint-onedrive-documents.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version format is invalid
embed-sharepoint-onedrive-documents/embed-sharepoint-onedrive-documents.php 92% from 13 tests
This is the main PHP file of "Embed SharePoint OneDrive Library/Documents/Files" version 2.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:
- Description: Please don't use more than 140 characters for the plugin description (currently 160 characters long)
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
There were no executable files found in this plugin9,173 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,032 | 670 | 5,207 |
CSS | 7 | 219 | 92 | 3,048 |
JavaScript | 7 | 92 | 11 | 609 |
SVG | 14 | 1 | 3 | 145 |
Markdown | 1 | 60 | 0 | 112 |
JSON | 3 | 0 | 0 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 2 | 6.90% |
▷ Concrete classes | 27 | 93.10% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 55 | 24.66% |
▷ Public methods | 151 | 67.71% |
▷ Protected methods | 18 | 8.07% |
▷ Private methods | 54 | 24.22% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 29 | |
▷ Global constants | 3 | 10.34% |
▷ Class constants | 26 | 89.66% |
▷ Public constants | 26 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 1.89MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/auto_connection_step2.png | 116.32KB | 50.18KB | ▼ 56.86% |
images/doc_preview_step.png | 359.53KB | 107.02KB | ▼ 70.23% |
images/folder.png | 9.48KB | 5.50KB | ▼ 41.94% |
images/userr.png | 1.39KB | 0.67KB | ▼ 51.65% |
images/copy.png | 8.77KB | 5.34KB | ▼ 39.09% |