Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/discoshare/discoshare.php+80
Undefined variable: wp_version
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.51ms] Passed 4 tests
Analyzing server-side resources used by Discoshare
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.10 ▲0.19 |
Dashboard /wp-admin | 3.31 ▼0.04 | 54.31 ▼11.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 57.53 ▲6.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.28 ▼13.07 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.29 ▼1.40 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Discoshare
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.37 ▲0.02 | 1.80 ▼0.00 | 45.01 ▲1.18 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.05 | 92.20 ▼0.25 | 39.79 ▼5.00 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.07 | 39.10 ▼2.67 | 35.84 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,525 ▼1 | 23.04 ▼0.30 | 607.40 ▲8.34 | 52.01 ▲1.65 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.17 ▼0.03 | 99.72 ▼5.44 | 43.87 ▼1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/discoshare/discoshare.php+305
Undefined variable: fields_string
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- 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
Everything seems fine, however this is by no means 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/discoshare/discoshare.php:350
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Discoshare dashboard page), #2 (Discoshare campaign page), #3 (Discoshare promotion email example), #4 (Discoshare discount(reward) email example)
- Donate link: Invalid URI found ("")
discoshare/discoshare.php Passed 13 tests
The principal PHP file in "Discoshare" v. 1.0 is loaded by WordPress automatically on each request
27 characters long description:
This is just a test version
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
Good job! No executable or dangerous file extensions detected21,084 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 10 | 28 | 15,244 |
JavaScript | 11 | 697 | 362 | 2,503 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 14 | 23 | 33 | 1,250 |
SVG | 1 | 0 | 0 | 520 |
PHP | 1 | 194 | 95 | 311 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 14 | |
▷ Named functions | 14 | 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
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/discoshare.png | 15.26KB | 0.15KB | ▼ 99.00% |
img/discoshare2.png | 9.96KB | 5.04KB | ▼ 49.35% |