Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.85ms] Passed 4 tests
This is a short check of server-side resources used by Dessky Snippets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.23 ▼4.93 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.44 ▼3.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.54 ▲1.85 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.45 ▼9.75 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.49 ▼0.78 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dessky Snippets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.13 | 4.17 ▲2.33 | 39.53 ▼3.85 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.94 | 101.13 ▼16.41 | 39.96 ▼6.71 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.00 ▼0.02 | 40.23 ▲4.14 | 33.82 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 23.12 ▲0.05 | 633.59 ▼40.27 | 59.40 ▼0.42 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.30 ▲0.08 | 94.32 ▼10.94 | 46.00 ▼0.04 |
Dessky Snippets /wp-admin/dessky-snippets.php | 26 | 0.44 | 0.10 | 13.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dessky-snippets/core/settings.php
- > /wp-content/plugins/dessky-snippets/dessky-snippets.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/dessky-snippets.php
- > Network (severe)
wp-admin/dessky-snippets.php - Failed to load resource: the server responded with a status of 404 (Not 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
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
dessky-snippets/dessky-snippets.php Passed 13 tests
The entry point to "Dessky Snippets" version 1.1 is a PHP file that has certain tags in its header comment area
123 characters long description:
This is a lightweight and simple plugin that gives you the ability to easily add your custom PHP code from WordPress admin.
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
No dangerous file extensions were detected479 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 44 | 30 | 277 |
PHP | 2 | 57 | 129 | 169 |
JavaScript | 2 | 8 | 19 | 23 |
Markdown | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
There were not PNG files found in your plugin