Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.62ms] Passed 4 tests
Server-side resources used by React & Share - Customizable Reaction Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 24.20 ▼14.65 |
Dashboard /wp-admin | 3.48 ▲0.18 | 45.41 ▲2.04 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.10 ▲3.21 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.72 ▼9.06 |
Media Library /wp-admin/upload.php | 3.41 ▲0.17 | 36.46 ▲4.06 |
React & Share /wp-admin/options-general.php?page=rns_options | 3.35 | 28.29 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
React & Share - Customizable Reaction Buttons: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.50 ▼0.69 | 12.95 ▲11.18 | 35.92 ▼4.56 |
Dashboard /wp-admin | 2,202 ▲21 | 5.62 ▼0.05 | 83.07 ▼15.11 | 39.09 ▼1.13 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.01 | 33.79 ▼1.18 | 35.88 ▲5.02 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,707 | 25.98 ▲2.83 | 874.36 ▲183.59 | 52.14 ▼22.78 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.11 | 98.35 ▼1.89 | 44.04 ▼3.13 |
React & Share /wp-admin/options-general.php?page=rns_options | 1,016 | 1.68 | 23.92 | 27.86 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=rns_options
- > Notice in wp-content/plugins/react-and-share/rns.php+323
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=rns_options
- > Notice in wp-content/plugins/react-and-share/rns.php+252
Undefined index: api_key
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/react-and-share/rns.php:34
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Reaction buttons)
- Tags: There are too many tags (20 tag instead of maximum 10)
react-and-share/rns.php 85% from 13 tests
This is the main PHP file of "React & Share - Customizable Reaction Buttons" version 3.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("react-and-share.php" instead of "rns.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
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
Good job! No executable or dangerous file extensions detected1,076 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 113 | 13 | 520 |
JavaScript | 3 | 52 | 5 | 282 |
CSS | 1 | 32 | 0 | 252 |
SVG | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
Analyzing 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.35 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 79.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 1.30MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 348.52KB | 132.05KB | ▼ 62.11% |
assets/icon-128x128.png | 12.24KB | 5.35KB | ▼ 56.24% |
assets/img/happy.png | 1.15KB | 1.20KB | 0.00% |
assets/img/pinterest-icon.png | 2.56KB | 1.97KB | ▼ 23.11% |
assets/banner-772x250.png | 75.68KB | 29.69KB | ▼ 60.76% |