Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.88ms] Passed 4 tests
This is a short check of server-side resources used by Code Snippet DM
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.62 ▲2.90 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.53 ▼3.10 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.26 ▲3.86 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.19 ▼6.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.61 ▼0.53 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Code Snippet DM
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲99 | 13.93 ▼0.45 | 16.74 ▲14.64 | 41.55 ▼2.28 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.06 | 85.56 ▼19.38 | 37.26 ▼5.08 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.00 | 40.01 ▲3.67 | 37.25 ▲4.24 |
Add New Post /wp-admin/post-new.php | 6,378 ▲4,852 | 28.16 ▲5.17 | 919.73 ▲240.14 | 38.74 ▼18.07 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.18 ▼0.01 | 95.37 ▼3.21 | 39.66 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/code-snippet-dm/public/partials/code-snippet-dm-public-display.php
- > /wp-content/plugins/code-snippet-dm/admin/partials/code-snippet-dm-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/code-snippet-dm/elementor-widgets/code-snippet.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: "devmaverick.com/donate"
code-snippet-dm/code-snippet-dm.php Passed 13 tests
The primary PHP file in "Code Snippet DM" version 2.0.3 is used by WordPress to initiate all plugin functionality
134 characters long description:
Display your code snippets in a stylish way inside your content. The plugin uses shortcodes and also very intuitive TinyMCE interface.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,003 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 157 | 289 | 1,158 |
Sass | 22 | 258 | 150 | 1,022 |
PHP | 16 | 216 | 640 | 571 |
JSON | 2 | 0 | 0 | 138 |
CSS | 4 | 16 | 24 | 85 |
Markdown | 8 | 21 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 29 | 74.36% |
▷ Protected methods | 3 | 7.69% |
▷ Private methods | 7 | 17.95% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/dm-code-small.png | 5.43KB | 1.63KB | ▼ 69.94% |