Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.82ms] Passed 4 tests
A check of server-side resources used by SocWit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.61 ▼5.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.19 ▲4.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.11 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.32 ▼5.28 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 35.03 ▼0.84 |
Socwit /wp-admin/edit-comments.php?page=socwit | 3.25 | 29.80 |
All Comments /wp-admin/edit-comments.php | 3.32 | 42.39 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SocWit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.29 ▼1.29 | 1.68 ▼0.24 | 46.58 ▲4.10 |
Dashboard /wp-admin | 2,231 ▲46 | 4.86 ▼1.00 | 114.00 ▲13.87 | 43.93 ▲1.25 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 1.98 ▼0.05 | 33.95 ▼3.38 | 35.02 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.32 ▼0.16 | 688.17 ▼3.50 | 51.36 ▼11.90 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.32 ▲0.13 | 99.64 ▼17.58 | 44.04 ▼0.73 |
Socwit /wp-admin/edit-comments.php?page=socwit | 902 | 2.51 | 33.38 | 24.55 |
All Comments /wp-admin/edit-comments.php | 1,814 | 2.28 | 36.13 | 32.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit-comments.php?page=socwit
- > Notice in wp-content/plugins/socwit/socwit.php+245
Undefined index: livdis_form_counter_sub
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/socwit/manage.php on line 16
- > PHP Warning
Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/socwit/manage.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/socwit/manage.php:32
- > PHP Warning
Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/socwit/manage.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/socwit/socwit.php:10
- > PHP Warning
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/edit-comments.php?page=socwit
- > Network (severe)
wp-admin/header_background.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit-comments.php?page=socwit
- > Network (severe)
wp-admin/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit-comments.php?page=socwit
- > Network (severe)
wp-admin/logo_bottom.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== socwit ===
)
socwit/socwit.php Passed 13 tests
The main file in "SocWit" v. 0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
13 characters long description:
Socwit plugin
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 detected327 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 38 | 38 | 221 |
JavaScript | 1 | 11 | 8 | 55 |
CSS | 1 | 7 | 0 | 51 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/logo_bottom.png | 5.09KB | 2.65KB | ▼ 47.98% |
css/header_background.png | 31.95KB | 16.03KB | ▼ 49.82% |
css/logo.png | 5.83KB | 3.72KB | ▼ 36.19% |