Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.63ms] 75% from 4 tests
This is a short check of server-side resources used by Good old Share
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,005.77ms on /wp-admin/options-general.php?page=good_old_share_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 36.77 ▼3.42 |
Dashboard /wp-admin | 3.56 ▲0.22 | 46.96 ▼12.82 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 52.39 ▲0.26 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 92.86 ▲1.47 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 36.20 ▲2.63 |
Good old share /wp-admin/options-general.php?page=good_old_share_options | 4.70 | 1,005.77 |
Good old counts /wp-admin/options-general.php?page=good_old_share_counts | 3.84 | 40.61 |
Server storage [IO: ▲0.10MB] [DB: ▲0.06MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Good old Share
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲147 | 15.06 ▲0.71 | 71.18 ▲69.56 | 47.46 ▲8.11 |
Dashboard /wp-admin | 2,194 ▲14 | 5.58 ▼0.08 | 89.13 ▲4.39 | 43.70 ▲3.55 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.05 ▲0.08 | 39.51 ▼3.02 | 35.24 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,737 | 21.30 ▼1.65 | 868.35 ▲157.36 | 34.11 ▼36.53 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.13 ▼0.03 | 101.06 ▲0.12 | 40.34 ▼0.86 |
Good old share /wp-admin/options-general.php?page=good_old_share_options | 2,372 | 2.15 | 32.69 | 39.87 |
Good old counts /wp-admin/options-general.php?page=good_old_share_counts | 1,185 | 5.04 | 130.92 | 40.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, 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 Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/good-old-share/uninstall.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/good-old-share/good-old-share.php:765
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid version format
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots require images: #1 (Sample content, activating the Facebook Share and Twitter buttons), #2 (Options available in the Settings menu)
good-old-share/good-old-share.php Passed 13 tests
The main file in "Good old Share" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Puts Facebook, Twitter, LinkedIn, Pinterest and other share buttons of your choice above or below your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,375 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 225 | 1,196 |
PO File | 1 | 39 | 42 | 95 |
CSS | 1 | 3 | 6 | 84 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.83 |
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 | 19 | |
▷ Named functions | 19 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/print.png | 0.90KB | 0.97KB | 0.00% |
images/specificfeeds_follow.png | 0.70KB | 0.54KB | ▼ 21.85% |
images/facebook-share.png | 0.82KB | 1.05KB | 0.00% |
images/email.png | 1.94KB | 0.89KB | ▼ 53.78% |
images/rss.png | 1.01KB | 1.18KB | 0.00% |