Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.37ms] Passed 4 tests
Server-side resources used by Share Theme Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 37.66 ▼4.33 |
Dashboard /wp-admin | 3.56 ▲0.26 | 47.51 ▼1.33 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 54.02 ▼3.27 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 95.08 ▼8.56 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 41.62 ▲10.90 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_share_theme_plugin_recent_post_widget |
db_upgraded |
widget_share_theme_plugin_about_me_widget |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Share Theme Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.54 ▼0.82 | 9.11 ▲7.45 | 44.27 ▲0.97 |
Dashboard /wp-admin | 2,215 ▲30 | 5.07 ▼0.82 | 108.77 ▲6.54 | 41.33 ▼2.22 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.02 | 40.68 ▼2.51 | 35.34 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,522 ▼8 | 23.39 ▲5.23 | 657.09 ▲23.14 | 61.82 ▲6.52 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.13 ▼0.11 | 111.60 ▲13.96 | 48.04 ▲5.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_share_theme_plugin_about_me_widget
- widget_theysaidso_widget
- widget_share_theme_plugin_recent_post_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/share-theme/widgets/share-theme-plugin-about-me-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/share-theme/widgets/share-theme-plugin-recent-post-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
share-theme/share-theme-plugin.php 85% from 13 tests
The main PHP file in "Share Theme Plugin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("share-theme.php" instead of "share-theme-plugin.php")
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
There were no executable files found in this plugin1,856 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 174 | 557 | 1,333 |
JavaScript | 3 | 9 | 34 | 284 |
CSS | 3 | 40 | 11 | 239 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 2 | 3.92% |
▷ Private methods | 5 | 9.80% |
Functions | 3 | |
▷ Named functions | 3 | 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
No PNG files were detected