Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/fp-linkedin-company-profile/fp_linkedin_company_profile.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinCompanyProfileWidget has a deprecated constructor
Server metrics [RAM: ▼1.96MB] [CPU: ▼59.11ms] Passed 4 tests
A check of server-side resources used by FP LinkedIn Company Profile
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.42 | 5.02 ▼43.85 |
Dashboard /wp-admin | 2.11 ▼1.28 | 8.47 ▼63.20 |
Posts /wp-admin/edit.php | 2.11 ▼1.29 | 6.28 ▼44.75 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.82 | 5.90 ▼84.63 |
Media Library /wp-admin/upload.php | 2.11 ▼1.17 | 5.72 ▼33.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_linkedincompanyprofilewidget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FP LinkedIn Company Profile: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.37 | 1.74 ▲0.09 | 44.62 ▼2.21 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.07 | 94.61 ▼4.22 | 42.14 ▼0.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.07 | 35.00 ▼0.74 | 39.14 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.18 ▲0.27 | 688.45 ▼14.72 | 63.17 ▼7.64 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▼0.01 | 100.42 ▼6.49 | 44.84 ▼5.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/fp-linkedin-company-profile/fp_linkedin_company_profile.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinCompanyProfileWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_linkedincompanyprofilewidget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fp-linkedin-company-profile/fp_linkedin_company_profile.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (View Frontend of FP LinkedIn Company Profile Widget View. There are also two more views.), #2 (View Frontend of FP LinkedIn Copany Profile Widget View with connections.), #3 (View Backend of FP LinkedIn Company Profile Widget Settings.)
fp-linkedin-company-profile/fp_linkedin_company_profile.php 85% from 13 tests
"FP LinkedIn Company Profile" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fp-linkedin-company-profile.php" instead of "fp_linkedin_company_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
Success! There were no dangerous files found in this plugin93 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
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.63KB | 5.40KB | ▼ 57.26% |
screenshot-2.png | 18.65KB | 8.18KB | ▼ 56.12% |
screenshot-3.png | 14.60KB | 6.08KB | ▼ 58.35% |