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
Installer ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼17.33ms] Passed 4 tests
A check of server-side resources used by Pearlcore Social Share
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 36.81 ▼4.22 |
Dashboard /wp-admin | 3.65 ▲0.30 | 48.67 ▼15.67 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 49.11 ▲0.35 |
Add New Post /wp-admin/post-new.php | 4.88 ▼1.01 | 45.63 ▼49.76 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.47 ▲7.32 |
Server storage [IO: ▲2.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pearlcore Social Share
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.63 ▼0.65 | 11.79 ▲9.86 | 54.87 ▲15.70 |
Dashboard /wp-admin | 2,204 ▲27 | 5.57 ▼0.09 | 89.30 ▼8.77 | 38.76 ▼4.52 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.00 ▲0.04 | 36.22 ▼4.59 | 38.03 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.75 ▲0.17 | 694.96 ▼10.66 | 51.43 ▼10.01 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.21 ▼0.08 | 101.01 ▼7.23 | 51.22 ▲4.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pearlcore-social-share/includes/setting-framework/class-pcs-sanitization.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pearlcore-social-share/includes/class-pc-social-share-core.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Plugin configuration panel), #2 (An example of how the sharing appear in the front-end)
- Plugin Name: Please specify the plugin name on the first line (
=== pearlcore-social-share ===
)
pearlcore-social-share/pc-social-share.php 92% from 13 tests
The principal PHP file in "Pearlcore Social Share" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pearlcore-social-share.php" instead of "pc-social-share.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,544 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 44 | 57 | 7,253 |
PHP | 16 | 339 | 852 | 1,452 |
SVG | 2 | 0 | 0 | 580 |
JavaScript | 7 | 86 | 86 | 259 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 7 | 15.22% |
▷ Public methods | 39 | 84.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.22% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
14 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/theme-3.png | 4.51KB | 2.56KB | ▼ 43.14% |
assets/images/theme-2.png | 3.12KB | 2.19KB | ▼ 29.63% |
assets/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
assets/images/theme-1.png | 3.35KB | 2.40KB | ▼ 28.31% |
assets/images/side-theme-2.png | 3.16KB | 2.37KB | ▼ 24.88% |