Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼33.43ms] Passed 4 tests
Analyzing server-side resources used by Spotlightr
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.24 ▼4.52 |
Dashboard /wp-admin | 3.02 ▼0.32 | 24.00 ▼38.62 |
Posts /wp-admin/edit.php | 3.02 ▼0.33 | 23.54 ▼22.32 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.86 | 21.85 ▼66.53 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 25.87 ▼6.23 |
Playlists /wp-admin/admin.php?page=spotlightr_playlist | 3.02 | 22.41 |
Quizzes /wp-admin/admin.php?page=spotlightr_quiz | 3.02 | 21.32 |
Videos /wp-admin/admin.php?page=spotlightr_videolist | 3.02 | 22.91 |
Settings /wp-admin/admin.php?page=spotlightr | 3.02 | 24.40 |
Gallery /wp-admin/admin.php?page=spotlightr_gallery | 3.02 | 20.89 |
Server storage [IO: ▲1.33MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Spotlightr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲323 | 22.08 ▲7.37 | 1.90 ▲0.21 | 24.28 ▼20.66 |
Dashboard /wp-admin | 2,468 ▲287 | 12.56 ▲6.88 | 282.50 ▲177.60 | 160.47 ▲118.69 |
Posts /wp-admin/edit.php | 2,422 ▲322 | 11.57 ▲9.56 | 110.60 ▲77.06 | 156.46 ▲123.41 |
Add New Post /wp-admin/post-new.php | 6,410 ▲4,884 | 28.68 ▲5.62 | 766.49 ▲169.77 | 78.52 ▲26.02 |
Media Library /wp-admin/upload.php | 1,556 ▲156 | 12.64 ▲8.48 | 134.53 ▲36.38 | 71.60 ▲29.85 |
Playlists /wp-admin/admin.php?page=spotlightr_playlist | 1,993 | 12.66 | 118.70 | 183.95 |
Quizzes /wp-admin/admin.php?page=spotlightr_quiz | 1,993 | 12.47 | 112.32 | 160.97 |
Videos /wp-admin/admin.php?page=spotlightr_videolist | 1,993 | 12.36 | 121.74 | 169.31 |
Settings /wp-admin/admin.php?page=spotlightr | 1,331 | 11.13 | 92.85 | 140.05 |
Gallery /wp-admin/admin.php?page=spotlightr_gallery | 1,993 | 12.76 | 109.68 | 68.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 108 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=spotlightr_gallery
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/spotlightr/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/spotlightr/add-group.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spotlightr/add-video.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spotlightr/quiz.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spotlightr/playlist.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spotlightr/add-video.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spotlightr/gallery.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: hosting, video, embed, streaming
spotlightr/spotlightr.php Passed 13 tests
The entry point to "Spotlightr" version 0.1.9 is a PHP file that has certain tags in its header comment area
38 characters long description:
Video for Small Businesses & Big Ideas
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
Everything looks great! No dangerous files found in this plugin3,038 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 177 | 34 | 1,471 |
PHP | 9 | 130 | 10 | 1,367 |
CSS | 2 | 37 | 6 | 189 |
JSON | 1 | 0 | 0 | 10 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/icon.png | 1.25KB | 0.66KB | ▼ 47.18% |