Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.91ms] Passed 4 tests
Server-side resources used by Sharedom
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.02 ▲2.12 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.63 ▼14.68 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.97 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.13 ▼4.38 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.10 ▲2.42 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Sharedom
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 13.64 ▼0.74 | 6.74 ▲5.04 | 37.87 ▼1.46 |
Dashboard /wp-admin | 2,213 ▲27 | 4.85 ▼0.13 | 101.87 ▼3.43 | 39.37 ▼3.32 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▼0.01 | 36.89 ▲2.87 | 33.81 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,518 ▼16 | 17.52 ▼5.79 | 661.14 ▼17.66 | 49.81 ▼3.24 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.19 ▲0.04 | 96.95 ▼9.50 | 41.74 ▼8.54 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sharedom/admin/partials/sharedom-admin-display.php
- > /wp-content/plugins/sharedom/public/partials/sharedom-public-display.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: atts in wp-content/plugins/sharedom/public/partials/sharedom-public-display.php on line 17
- > PHP Notice
Undefined variable: atts in wp-content/plugins/sharedom/public/partials/sharedom-public-display.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sharedom/public/partials/sharedom-public-display.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sharedom/public/partials/sharedom-public-display.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sharedom/public/partials/sharedom-public-display.php on line 17
- > PHP Notice
Undefined variable: atts in wp-content/plugins/sharedom/public/partials/sharedom-public-display.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: design, responsive, share, flat, googleplus...
sharedom/sharedom.php Passed 13 tests
Analyzing the main PHP file in "Sharedom" version 2.0.0
83 characters long description:
Responsive sharing buttons for sharing current URL to Facebook, Twitter and Google+
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,204 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 96 | 193 | 1,550 |
SVG | 1 | 0 | 0 | 414 |
PHP | 12 | 117 | 518 | 206 |
JavaScript | 2 | 7 | 27 | 20 |
Markdown | 1 | 12 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG images were not found in this plugin