Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.56MB] [CPU: ▼18.45ms] Passed 4 tests
Server-side resources used by Page/Post Specific Social Share Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 31.17 ▼14.64 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.86 ▼3.79 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.53 ▼3.11 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.59 | 37.59 ▼52.24 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.37 ▲4.83 |
Page/Post Specific Social Share /wp-admin/options-general.php?page=ppss-social-share | 3.32 | 31.98 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ppss_social_share |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Page/Post Specific Social Share Buttons: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,176 ▲415 | 19.38 ▲5.11 | 82.01 ▲80.26 | 59.17 ▲13.82 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▼0.02 | 88.52 ▲0.01 | 41.83 ▼1.72 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.05 | 36.05 ▼0.88 | 34.56 ▼1.37 |
Add New Post /wp-admin/post-new.php | 6,238 ▲4,712 | 26.06 ▲2.24 | 868.17 ▲253.74 | 53.56 ▼2.64 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▼0.07 | 106.69 ▲2.59 | 46.07 ▲0.44 |
Page/Post Specific Social Share /wp-admin/options-general.php?page=ppss-social-share | 1,219 | 2.13 | 24.10 | 38.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ppss-social-share
- > Notice in wp-content/plugins/pagepost-specific-social-share-buttons/ppss_admin_page.php+257
Undefined index: twitter_id
- > GET request to /wp-admin/options-general.php?page=ppss-social-share
- > Notice in wp-content/plugins/pagepost-specific-social-share-buttons/ppss_admin_page.php+262
Undefined index: custom_code
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagepost-specific-social-share-buttons/ppss_admin_page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagepost-specific-social-share-buttons/ppss_admin_page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagepost-specific-social-share-buttons/ppss_admin_page.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: page specific social share buttons, pagepost specific social share buttons, post specific social share buttons
pagepost-specific-social-share-buttons/page-post-specific-social-share.php 92% from 13 tests
This is the main PHP file of "Page/Post Specific Social Share Buttons" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pagepost-specific-social-share-buttons.php" instead of "page-post-specific-social-share.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin788 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 11 | 770 |
CSS | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 35.17KB | 16.17KB | ▼ 54.02% |
screenshot-1.png | 160.25KB | 55.50KB | ▼ 65.37% |
screenshot-3.png | 94.40KB | 34.60KB | ▼ 63.35% |