Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.00ms] Passed 4 tests
This is a short check of server-side resources used by Foosocial
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.16 ▲3.90 |
Dashboard /wp-admin | 3.46 ▲0.16 | 52.84 ▲0.42 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.94 ▲1.40 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 98.49 ▼17.72 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 42.80 ▲5.31 |
Foosocial /wp-admin/options-general.php?page=foosocial-settings | 3.36 | 35.73 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Foosocial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲248 | 13.63 ▼0.64 | 15.30 ▲13.50 | 53.00 ▲6.03 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▼0.05 | 107.22 ▲1.23 | 40.31 ▲1.00 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.07 | 39.33 ▼1.88 | 34.61 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,521 ▼16 | 23.05 ▲4.61 | 678.47 ▲44.40 | 51.94 ▼0.31 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.23 ▼0.05 | 101.26 ▲0.09 | 47.63 ▲3.12 |
Foosocial /wp-admin/options-general.php?page=foosocial-settings | 884 | 1.96 | 34.36 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/foosocial/public/partials/foosocial-public-display.php
- > /wp-content/plugins/foosocial/admin/partials/foosocial-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/foosocial/admin/settings/settings.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
foosocial/foosocial.php Passed 13 tests
The primary PHP file in "Foosocial" version 1.0.1 is used by WordPress to initiate all plugin functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,500 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 302 | 751 | 724 |
SVG | 1 | 0 | 0 | 640 |
CSS | 3 | 9 | 11 | 96 |
JavaScript | 2 | 10 | 55 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.50% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected