Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.89ms] Passed 4 tests
Server-side resources used by PDF Shortcodes Ultimate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 32.90 ▼11.73 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.88 ▼6.02 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.81 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.18 ▼7.04 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.64 ▼0.55 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
pdf_shortcodes_ultimate_version |
Browser metrics Passed 4 tests
PDF Shortcodes Ultimate: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.77 ▼0.47 | 1.85 ▼0.09 | 41.11 ▼2.97 |
Dashboard /wp-admin | 2,209 ▲24 | 4.80 ▼1.07 | 97.26 ▼2.62 | 34.99 ▼4.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 39.10 ▲2.11 | 34.76 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.31 ▲0.43 | 673.98 ▲7.28 | 75.25 ▲18.11 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.15 ▼0.05 | 108.18 ▲12.74 | 46.61 ▲2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- pdf_shortcodes_ultimate_version
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: shortcodes ultimate, embed, pdf viewer, su_pdf, pdf
pdf-shortcodes-ultimate/pdf-shortcodes-ultimate.php Passed 13 tests
"PDF Shortcodes Ultimate" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Embed PDF documents in your article or page with this "PDF" shortcode for Shortcodes Ultimate.
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
Success! There were no dangerous files found in this plugin982 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 224 | 635 | 821 |
Markdown | 1 | 48 | 0 | 64 |
JavaScript | 4 | 16 | 6 | 54 |
PO File | 1 | 11 | 13 | 43 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.60 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.76% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin