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.18MB] [CPU: ▲0.23ms] Passed 4 tests
An overview of server-side resources used by Presenter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 40.12 ▼0.55 |
Dashboard /wp-admin | 3.48 ▲0.17 | 53.32 ▲3.35 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 51.99 ▲0.28 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 100.27 ▼0.35 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 40.05 ▲1.54 |
Add New /wp-admin/post-new.php?post_type=slideshow | 3.52 | 57.43 |
All Slideshows /wp-admin/edit.php?post_type=slideshow | 3.44 | 41.03 |
Server storage [IO: ▲6.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Presenter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 14.25 ▼0.11 | 1.76 ▼0.19 | 41.99 ▼0.21 |
Dashboard /wp-admin | 2,222 ▲45 | 5.62 ▼0.03 | 91.46 ▼2.66 | 40.00 ▼3.46 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.02 ▲0.04 | 41.53 ▲2.88 | 35.96 ▼4.13 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.34 ▼0.14 | 661.61 ▼6.68 | 52.39 ▼3.12 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.28 ▲0.07 | 97.79 ▼6.59 | 45.98 ▲4.14 |
Add New /wp-admin/post-new.php?post_type=slideshow | 2,612 | 7.71 | 195.01 | 59.54 |
All Slideshows /wp-admin/edit.php?post_type=slideshow | 1,100 | 1.97 | 29.98 | 34.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/presenter/templates/header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/presenter/templates/header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/presenter/presenter.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/presenter/templates/footer.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: slides, slideshare, keynote, slideshow, presentations...
presenter/presenter.php 92% from 13 tests
"Presenter" version 1.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please use more than 10 characters for the plugin description (currently 9 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
Success! There were no dangerous files found in this plugin33,673 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,389 |
JavaScript | 54 | 2,342 | 2,585 | 5,631 |
HTML | 25 | 1,099 | 36 | 3,880 |
CSS | 20 | 649 | 410 | 3,492 |
Sass | 19 | 564 | 144 | 2,507 |
PHP | 4 | 120 | 164 | 650 |
Markdown | 5 | 57 | 0 | 104 |
YAML | 2 | 5 | 0 | 20 |
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.32 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 21 | 63.64% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 11 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
reveal.js/examples/assets/image2.png | 10.00KB | 5.27KB | ▼ 47.25% |
reveal.js/examples/assets/image1.png | 21.48KB | 8.50KB | ▼ 60.42% |