Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.69ms] Passed 4 tests
An overview of server-side resources used by Simplebooklet PDF Viewer and Embedder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.34 ▼3.74 |
Dashboard /wp-admin | 3.31 ▲0.01 | 41.47 ▼3.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.24 ▼0.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 75.86 ▼14.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 33.53 ▼1.53 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Simplebooklet PDF Viewer and Embedder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲107 | 13.87 ▼0.22 | 7.11 ▲5.52 | 38.23 ▼1.64 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▲0.02 | 95.93 ▲8.34 | 43.11 ▲4.88 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.00 | 39.28 ▲1.64 | 36.97 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▲0.00 | 610.81 ▼37.36 | 71.39 ▲18.21 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.00 | 93.54 ▼0.37 | 41.20 ▼1.00 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplebooklet/simplebooklet.php:30
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: docs, flip book, pdf viewer, slides, pdf...
simplebooklet/simplebooklet.php Passed 13 tests
This is the main PHP file of "Simplebooklet PDF Viewer and Embedder" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
[simplebooklet src="{booklet embed url}" width="{booklet width}" height="{booklet height}"] shortcode
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
Success! There were no dangerous files found in this plugin22 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 28 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
There are no PNG files in this plugin