Benchmarks
Plugin footprint 82% 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.03MB] [CPU: ▼2.52ms] Passed 4 tests
This is a short check of server-side resources used by Ruven Themes: Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.36 ▼4.47 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.76 ▼3.40 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.56 ▲1.78 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.19 ▼4.00 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.90 ▲2.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-shortcodes/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/ruven-themes-shortcodes/assets/icon-128\303\227128.png"
- (new file) "wp-content/plugins/ruven-themes-shortcodes/assets/icon-256\303\227256.png"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Ruven Themes: Shortcodes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.11 | 1.82 ▼0.01 | 39.28 ▼5.90 |
Dashboard /wp-admin | 2,208 ▲17 | 4.85 ▼1.05 | 110.18 ▲7.81 | 37.97 ▼7.10 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.06 ▲0.06 | 39.15 ▲1.47 | 35.09 ▲4.42 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 18.08 ▼4.98 | 587.71 ▼68.76 | 52.31 ▼3.79 |
Media Library /wp-admin/upload.php | 1,384 ▼7 | 4.20 ▲0.02 | 98.92 ▼1.18 | 42.30 ▼1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ruven-themes-shortcodes/tinymce/tinymce.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ruven-themes-shortcodes/shortcodes/shortcodes.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ruven-themes-shortcodes/ruven-themes-shortcodes.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
3 plugin tags: tinymce, shortcode editor, shortcodes
ruven-themes-shortcodes/ruven-themes-shortcodes.php Passed 13 tests
"Ruven Themes: Shortcodes" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Extends the functionality of Ruven Themes by adding a shortcode editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected508 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 12 | 10 | 230 |
CSS | 2 | 61 | 21 | 140 |
PHP | 3 | 154 | 46 | 138 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128×128.png | 5.09KB | 2.43KB | ▼ 52.23% |
assets/icon-256×256.png | 4.70KB | 1.74KB | ▼ 62.93% |
tinymce/rtsc-icon.png | 0.63KB | 0.56KB | ▼ 10.78% |