Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/fp-linkedin-profile/fp_linkedin_profile.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinProfileWidget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.95ms] Passed 4 tests
A check of server-side resources used by FP LinkedIn Profile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.21 ▼34.07 |
Dashboard /wp-admin | 2.10 ▼1.24 | 5.81 ▼51.78 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.29 ▼42.76 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.80 ▼87.17 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.13 ▼29.47 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_linkedinprofilewidget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by FP LinkedIn Profile
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.61 | 1.65 ▼0.03 | 37.32 ▼7.37 |
Dashboard /wp-admin | 2,192 ▲11 | 5.62 ▼0.09 | 94.57 ▼2.78 | 39.59 ▼2.02 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 38.13 ▲1.71 | 35.84 ▲3.66 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.52 ▲0.33 | 593.15 ▼97.11 | 47.91 ▼13.85 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.25 ▲0.04 | 96.01 ▲0.04 | 43.39 ▼1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/fp-linkedin-profile/fp_linkedin_profile.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinProfileWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_linkedinprofilewidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fp-linkedin-profile/fp_linkedin_profile.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Screenshots: Add images for these screenshots: #1 (View Frontend of FP LinkedIn Profile Widget View. There are also two more views.), #2 (View Frontend of FP LinkedIn Profile Widget View with connections.), #3 (View Backend of FP LinkedIn Profile Widget Settings.)
fp-linkedin-profile/fp_linkedin_profile.php 85% from 13 tests
The main PHP file in "FP LinkedIn Profile" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fp-linkedin-profile.php" instead of "fp_linkedin_profile.php")
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
No dangerous file extensions were detected93 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 9 | 93 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 36.23KB | 14.25KB | ▼ 60.68% |
screenshot-3.png | 13.53KB | 5.60KB | ▼ 58.64% |
screenshot-1.png | 23.81KB | 8.82KB | ▼ 62.97% |