Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/nerd-social-share-buttons/nerd-share.php+25
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.55ms] Passed 4 tests
This is a short check of server-side resources used by nerd Simple Share Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.21 ▼8.19 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.42 ▼14.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.58 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.59 ▼9.69 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.41 ▲3.37 |
nerd Social Share /wp-admin/options-general.php?page=nerd-social-plugin-nerd | 3.22 | 26.38 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
nerd_social_plugin |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by nerd Simple Share Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 14.48 ▲0.10 | 1.93 ▼0.05 | 35.92 ▼11.39 |
Dashboard /wp-admin | 2,213 ▲28 | 4.82 ▼1.06 | 100.39 ▼4.69 | 38.16 ▼5.92 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.02 | 38.68 ▼0.31 | 37.13 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.51 ▼5.64 | 683.70 ▼44.06 | 65.40 ▼1.71 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.03 | 94.09 ▼14.43 | 39.81 ▼7.80 |
nerd Social Share /wp-admin/options-general.php?page=nerd-social-plugin-nerd | 933 | 2.15 | 25.62 | 30.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- 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)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=nerd-social-plugin-nerd
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=nerd-social-plugin-nerd
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nerd-social-share-buttons/nerd-share.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nerd-social-share-buttons/nerd-social-plugin.php:12
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Share buttons appearance at the frontend), #2 (Plugin backend settings)
nerd-social-share-buttons/nerd-share.php 92% from 13 tests
This is the main PHP file of "nerd Simple Share Buttons" version 2.0.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nerd-social-share-buttons.php" instead of "nerd-share.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected764 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 63 | 422 |
CSS | 3 | 42 | 14 | 342 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 18 | |
▷ Named functions | 18 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flickr.png | 1.14KB | 0.19KB | ▼ 83.02% |
images/rss.png | 1.36KB | 0.37KB | ▼ 72.93% |
images/dribbble.png | 1.51KB | 0.44KB | ▼ 70.51% |
images/pinterest.png | 1.38KB | 0.38KB | ▼ 72.34% |
images/gplus.png | 1.38KB | 0.36KB | ▼ 74.01% |