Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼1.92ms] Passed 4 tests
This is a short check of server-side resources used by Easy Code Snippets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 46.82 ▲1.43 |
Dashboard /wp-admin | 3.80 ▲0.50 | 48.14 ▼3.81 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 51.90 ▼0.69 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 104.37 ▼4.61 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 37.49 ▲5.91 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.92 | 35.74 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 175 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_ecs_snippets |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
fs_gdpr |
widget_recent-posts |
widget_theysaidso_widget |
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
Easy Code Snippets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 15.86 ▲1.48 | 2.16 ▲0.30 | 38.49 ▼13.02 |
Dashboard /wp-admin | 2,262 ▲71 | 6.84 ▲1.75 | 146.43 ▲28.67 | 74.89 ▲31.14 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 4.02 ▲2.00 | 96.83 ▲58.85 | 42.28 ▲8.22 |
Add New Post /wp-admin/post-new.php | 1,563 ▲29 | 22.86 ▼0.32 | 756.06 ▲75.59 | 40.14 ▼23.45 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 5.82 ▲1.54 | 153.12 ▲33.08 | 84.70 ▲32.02 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,093 | 3.79 | 89.39 | 27.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/easy-code-snippets/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ecs_snippets
- Zombie WordPress options were found after uninstall: 11 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_accounts
- db_upgraded
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
- ecsnippets_version
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: custom css code, code snippets, custom js code, tracking code, google analitics code
easy-code-snippets/easy-code-snippets.php 77% from 13 tests
Analyzing the main PHP file in "Easy Code Snippets" version 1.0.1
It is important to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 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 plugin31,320 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 7,377 | 16,343 | 30,854 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 4 | 37 | 60 | 211 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 84.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,157 | |
▷ Static methods | 174 | 15.04% |
▷ Public methods | 817 | 70.61% |
▷ Protected methods | 15 | 1.30% |
▷ Private methods | 325 | 28.09% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |