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.16MB] [CPU: ▼3.45ms] Passed 4 tests
Analyzing server-side resources used by Nuton Text Share WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.36 ▼3.12 |
Dashboard /wp-admin | 3.55 ▲0.24 | 48.95 ▼1.62 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.99 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 84.77 ▼10.18 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.57 ▲2.39 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
text_share_general |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
text_share_color |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Nuton Text Share WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲350 | 15.26 ▲0.64 | 5.92 ▲4.25 | 43.76 ▼7.28 |
Dashboard /wp-admin | 2,364 ▲173 | 6.62 ▲1.72 | 121.09 ▲17.71 | 37.92 ▼7.20 |
Posts /wp-admin/edit.php | 2,276 ▲187 | 3.59 ▲1.59 | 46.34 ▲10.10 | 32.87 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,368 ▼152 | 17.24 ▼6.01 | 567.43 ▼99.73 | 29.78 ▼36.34 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.31 ▲0.09 | 80.54 ▼31.94 | 38.08 ▼7.62 |
Text Share Options /wp-admin/text-share-options.php | 26 | 0.44 | 0.12 | 12.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- text_share_general
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- text_share_color
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuton-text-share/includes/text-share-options-set.php:191
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuton-text-share/admin/src/class.settings-api.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuton-text-share/admin/src/class.settings-api.php:28
- > PHP Fatal error
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/text-share-options.php
- > Network (severe)
wp-admin/text-share-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: social share, text share, social, tweet share, text tweet
nuton-text-share/nuton-text-share-wordpress.php 77% from 13 tests
"Nuton Text Share WordPress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nuton-text-share.php" instead of "nuton-text-share-wordpress.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,739 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 159 | 242 | 790 |
SVG | 1 | 0 | 0 | 655 |
PO File | 1 | 64 | 64 | 199 |
JavaScript | 2 | 5 | 8 | 59 |
CSS | 2 | 0 | 3 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected