Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.49ms] Passed 4 tests
A check of server-side resources used by Text Snipper
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.32 ▼4.19 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.07 ▼8.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.63 ▼2.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.96 ▼14.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.74 ▼3.41 |
Text Snipper /wp-admin/options-general.php?page=text-snipper-settings | 3.20 | 31.17 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Text Snipper
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.62 ▲0.27 | 1.71 ▼0.84 | 39.34 ▼7.06 |
Dashboard /wp-admin | 2,196 ▲16 | 5.64 ▼0.03 | 87.40 ▼6.89 | 47.45 ▲5.89 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.01 | 35.48 ▼4.93 | 40.52 ▲8.99 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 18.36 ▲0.36 | 641.60 ▲6.21 | 64.84 ▼11.33 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.30 ▲0.12 | 104.26 ▲1.09 | 41.63 ▼2.98 |
Text Snipper /wp-admin/options-general.php?page=text-snipper-settings | 786 | 2.03 | 25.16 | 23.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/text-snipper/text-snipper.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Settings page with an HTML class entered.), #2 (Truncation in action.)
text-snipper/text-snipper.php Passed 13 tests
This is the main PHP file of "Text Snipper" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Multiline text truncation with ellipses.
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
Everything looks great! No dangerous files found in this plugin95 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 17 | 54 |
JavaScript | 1 | 10 | 6 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin