Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-present/wp-present.php+107
Non-static method WP_Present_Core::action_init_register_post_type() should not be called statically
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.21ms] Passed 4 tests
A check of server-side resources used by WP Present - beta
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.66 ▼2.38 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.23 ▼2.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.71 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.85 ▼8.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.33 ▲3.31 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
wp-present-version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Present - beta
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.27 ▲0.13 | 1.71 ▼0.18 | 37.04 ▼9.33 |
Dashboard /wp-admin | 2,192 ▲12 | 5.55 ▼0.12 | 85.46 ▼13.84 | 39.32 ▼2.87 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.05 | 33.99 ▼4.45 | 34.71 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 21.16 ▲2.92 | 641.60 ▼8.78 | 63.10 ▼2.06 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.16 ▼0.01 | 102.60 ▲4.51 | 46.97 ▲0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- wp-present-version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Present_Connect' not found in wp-content/plugins/wp-present/inc/class-wp-present-singleton.php:68
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Image_Control' not found in wp-content/plugins/wp-present/inc/class-customizer-background-image-control.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-present/templates/slide.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-present/inc/class-wp-present-settings.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-present/inc/class-wp-present-video-player.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-present/wp-present.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-present/templates/embed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-present/inc/class-wp-present-taxonomy-bridge.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-present/inc/class-wp-present-connect.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-present/inc/class-modal-customizer.php:31
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
wp-present/wp-present.php Passed 13 tests
The main file in "WP Present - beta" v. 0.9.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Create interactive slide presentations, the WordPress way
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
There were no executable files found in this plugin11,073 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 600 | 442 | 3,349 |
JavaScript | 29 | 1,112 | 1,174 | 3,134 |
PHP | 13 | 398 | 784 | 1,730 |
HTML | 10 | 325 | 16 | 1,416 |
Markdown | 4 | 284 | 0 | 627 |
Sass | 11 | 138 | 67 | 409 |
SVG | 2 | 0 | 0 | 363 |
JSON | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 9 | 9.09% |
▷ Public methods | 81 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 18.18% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 8 | 20.51% |
▷ Class constants | 31 | 79.49% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
js/reveal.js/examples/assets/image2.png | 10.00KB | 5.27KB | ▼ 47.25% |
js/reveal.js/examples/assets/image1.png | 21.48KB | 8.50KB | ▼ 60.42% |