Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲24.51ms] Passed 4 tests
An overview of server-side resources used by Snippy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 67.53 ▲25.15 |
Dashboard /wp-admin | 3.35 ▲0.04 | 75.79 ▲20.73 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 91.28 ▲39.97 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 128.61 ▲25.67 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 65.71 ▲26.50 |
Bits /wp-admin/admin.php?page=snippy_bits | 3.24 | 74.02 |
Shortcodes /wp-admin/admin.php?page=snippy | 3.24 | 56.87 |
Add Bit /wp-admin/admin.php?page=snippy_edit_bit | 3.24 | 58.67 |
Add Shortcode /wp-admin/admin.php?page=snippy_edit_shortcode | 3.24 | 58.63 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_snippy_shortcodes |
wp_snippy_shortcode_bits |
wp_snippy_bits |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
snippy_db_version |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Snippy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 14.29 ▲0.00 | 1.87 ▲0.09 | 44.36 ▲3.03 |
Dashboard /wp-admin | 2,302 ▲125 | 5.60 ▲0.01 | 84.81 ▼9.08 | 39.30 ▼4.66 |
Posts /wp-admin/edit.php | 2,219 ▲116 | 2.06 ▲0.06 | 41.81 ▼1.22 | 35.36 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,561 ▲25 | 22.46 ▼0.85 | 693.58 ▼0.43 | 49.69 ▲0.58 |
Media Library /wp-admin/upload.php | 1,508 ▲111 | 4.22 ▲0.02 | 101.51 ▼42.60 | 44.44 ▼7.51 |
Bits /wp-admin/admin.php?page=snippy_bits | 1,060 | 2.06 | 30.28 | 35.30 |
Shortcodes /wp-admin/admin.php?page=snippy | 1,021 | 2.19 | 27.63 | 31.00 |
Add Bit /wp-admin/admin.php?page=snippy_edit_bit | 1,293 | 3.29 | 64.32 | 58.07 |
Add Shortcode /wp-admin/admin.php?page=snippy_edit_shortcode | 981 | 2.04 | 26.91 | 32.49 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/snippy/includes/list.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/snippy/includes/list.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/snippy/includes/list.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/snippy/includes/bits.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/snippy/includes/bits.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function snippy\\is_admin() in wp-content/plugins/snippy/snippy.php:52
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/snippy/includes/bits.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: short code, build, javascript, shortcode, create
snippy/snippy.php Passed 13 tests
The main file in "Snippy" v. 1.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Snippy, create your own super flexible shortcodes
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
Everything looks great! No dangerous files found in this plugin1,558 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 374 | 133 | 1,193 |
JavaScript | 7 | 61 | 10 | 193 |
CSS | 1 | 53 | 27 | 159 |
SVG | 1 | 5 | 5 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 41 | 68.33% |
▷ Public methods | 58 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.33% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
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 |
admin/js/mce/icon.png | 0.88KB | 0.17KB | ▼ 80.27% |