Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼273.31ms] Passed 4 tests
A check of server-side resources used by Spreaker Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 33.03 ▼0.19 |
Dashboard /wp-admin | 3.08 ▲0.03 | 44.85 ▼7.87 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 43.49 ▲6.86 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.77 ▼1,077.66 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.24 ▼7.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Spreaker Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,650 ▲44 | 16.15 ▲0.57 | 6.96 ▼1.47 | 46.07 ▼3.32 |
Dashboard /wp-admin | 2,934 ▲81 | 5.90 ▲0.05 | 140.87 ▼11.24 | 105.44 ▲3.77 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.00 | 65.50 ▲3.59 | 92.13 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,481 ▲2 | 18.49 ▲0.33 | 363.15 ▼4.24 | 107.37 ▲1.84 |
Media Library /wp-admin/upload.php | 1,772 ▲3 | 5.04 ▲0.01 | 147.54 ▼4.60 | 109.95 ▼3.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/spreaker-shortcode/spreaker_shortcode.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/spreaker-shortcode/trunk/spreaker_shortcode.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 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
9 plugin tags: player, embed, spreaker, shortcode, audio...
spreaker-shortcode/spreaker_shortcode.php 85% from 13 tests
Analyzing the main PHP file in "Spreaker Shortcode" version 1.8.0
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 285 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("spreaker-shortcode.php" instead of "spreaker_shortcode.php")
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 plugin248 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 23 | 141 |
PO File | 2 | 22 | 22 | 60 |
JavaScript | 1 | 4 | 0 | 34 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
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 | 12 | |
▷ Named functions | 12 | 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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected