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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.45ms] Passed 4 tests
An overview of server-side resources used by Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more..
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.60 ▼5.17 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.19 ▼3.30 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.30 ▼2.25 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.99 ▲3.96 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.61 ▲0.93 |
Dashboard /wp-admin/edit.php?post_type=ede_embedder | 3.35 | 41.45 |
About Us /wp-admin/edit.php?post_type=ede_embedder&page=easy_embedder_about | 3.29 | 36.68 |
Add New /wp-admin/post-new.php?post_type=ede_embedder | 3.33 | 46.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more..
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲265 | 14.63 ▲0.05 | 2.20 ▲0.38 | 40.43 ▼12.23 |
Dashboard /wp-admin | 2,381 ▲193 | 6.43 ▲0.56 | 127.07 ▲9.75 | 39.27 ▼4.38 |
Posts /wp-admin/edit.php | 2,300 ▲211 | 3.36 ▲1.33 | 55.08 ▲18.33 | 35.17 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6,615 ▲5,096 | 29.21 ▲5.86 | 814.50 ▲167.68 | 35.53 ▼25.82 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.15 ▼0.05 | 81.37 ▼15.97 | 41.22 ▼4.67 |
Dashboard /wp-admin/edit.php?post_type=ede_embedder | 1,277 | 3.37 | 52.19 | 25.41 |
About Us /wp-admin/edit.php?post_type=ede_embedder&page=easy_embedder_about | 1,029 | 3.05 | 39.66 | 24.45 |
Add New /wp-admin/post-new.php?post_type=ede_embedder | 1,896 | 3.65 | 62.34 | 35.58 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- 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)
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/easy-document-embedder/template/dashboard.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: document, google docs, powerpoint, excel, embed pdf
easy-document-embedder/easy-document-embedder.php 85% from 13 tests
The entry point to "Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more.." version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 77 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected860 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 142 | 87 | 686 |
JavaScript | 2 | 17 | 7 | 95 |
CSS | 1 | 6 | 0 | 79 |
HTML | 1 | 3 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 images were found in this plugin