Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼143.58ms] Passed 4 tests
This is a short check of server-side resources used by Social Parts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 37.02 ▲15.04 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.18 ▼3.52 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 46.12 ▲2.56 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 96.50 ▼564.51 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 32.43 ▼8.83 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_social_parts |
New WordPress options |
---|
social_parts_version |
Browser metrics Passed 4 tests
Checking browser requirements for Social Parts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 15.87 ▲0.31 | 8.37 ▼0.95 | 48.07 ▼2.04 |
Dashboard /wp-admin | 2,974 ▲46 | 5.91 ▼0.33 | 138.33 ▼10.53 | 130.33 ▲26.00 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.71 ▼0.01 | 63.23 ▼5.22 | 93.81 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,680 ▲10 | 19.09 ▼0.04 | 415.62 ▲11.09 | 108.17 ▲3.38 |
Media Library /wp-admin/upload.php | 1,762 ▼45 | 5.00 ▲0.01 | 136.93 ▼12.23 | 128.81 ▲11.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-parts/admin/partials/social-parts-admin-display.php:88
- > PHP Warning
Use of undefined constant SOCIAL_PARTS_URL - assumed 'SOCIAL_PARTS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-parts/admin/partials/social-parts-admin-display.php on line 85
- > PHP Notice
Undefined variable: social_parts_domain_id in wp-content/plugins/social-parts/admin/partials/social-parts-admin-display.php on line 60
- > PHP Notice
Undefined variable: social_parts_domain_id in wp-content/plugins/social-parts/admin/partials/social-parts-admin-display.php on line 82
- > PHP Notice
Undefined variable: social_parts_domain_id in wp-content/plugins/social-parts/admin/partials/social-parts-admin-display.php on line 16
- > PHP Warning
Use of undefined constant SOCIAL_PARTS_PLUGIN_NAME - assumed 'SOCIAL_PARTS_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-parts/admin/partials/social-parts-admin-display.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-parts/social-parts.php Passed 13 tests
The main PHP script in "Social Parts" version 1.0.1 is automatically included on every request by WordPress
80 characters long description:
Try Social Proof to turn your visitors into email subscribers before they leave.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,382 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 132 | 14 | 784 |
PHP | 9 | 67 | 54 | 464 |
JavaScript | 2 | 14 | 0 | 134 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 4 | 16.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/menu-item-logo.png | 0.96KB | 0.46KB | ▼ 52.24% |
admin/images/full-logo.png | 3.06KB | 1.74KB | ▼ 43.05% |