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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by Basic Sharer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.93 ▼0.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.68 ▼3.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.70 ▼1.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.41 ▼15.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 39.67 ▲4.33 |
Basic Sharer /wp-admin/options-general.php?page=basic_sharer_options | 3.22 | 35.11 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Basic Sharer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.00 | 1.97 ▲0.18 | 44.55 ▼7.12 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.04 | 92.37 ▼10.19 | 41.86 ▼4.31 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▼0.06 | 39.45 ▲2.78 | 36.87 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▲0.01 | 586.00 ▼118.60 | 52.47 ▼4.89 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.08 | 98.17 ▼18.19 | 42.98 ▼5.07 |
Basic Sharer /wp-admin/options-general.php?page=basic_sharer_options | 821 | 2.02 | 26.00 | 28.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basic-sharer/basic-sharer.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/basic-sharer/options_page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: social, share
basic-sharer/basic-sharer.php 92% from 13 tests
This is the main PHP file of "Basic Sharer" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected115 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 11 | 83 |
PO File | 1 | 8 | 8 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tw-24.png | 0.37KB | 0.38KB | 0.00% |
images/ln-24.png | 1.33KB | 0.90KB | ▼ 32.33% |
images/fb-24.png | 0.23KB | 0.24KB | 0.00% |