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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.31MB] [CPU: ▼14.79ms] Passed 4 tests
Server-side resources used by Simple Socnets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 35.33 ▼5.63 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.12 ▼6.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.25 ▼0.32 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.27 | 45.86 ▼46.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.83 ▼1.04 |
Simple Socnets /wp-admin/options-general.php?page=simple-socnet-global-settings | 3.19 | 30.71 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Socnets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.24 ▼0.25 | 1.79 ▼0.15 | 45.53 ▼0.48 |
Dashboard /wp-admin | 2,202 ▲31 | 5.64 ▲0.09 | 94.88 ▼9.72 | 41.62 ▼0.80 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.02 | 33.95 ▼3.86 | 36.44 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.56 ▲0.54 | 672.51 ▲53.47 | 57.21 ▲0.09 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.03 | 95.61 ▼5.13 | 44.16 ▲2.23 |
Simple Socnets /wp-admin/options-general.php?page=simple-socnet-global-settings | 908 | 2.02 | 22.32 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- 19 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-socnet-global-settings
- > Notice in wp-content/plugins/simple-socnets/simple-socnets.php+147
Trying to access array offset on value of type bool
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-socnet-global-settings
- > Notice in wp-content/plugins/simple-socnets/simple-socnets.php+147
Trying to access array offset on value of type null
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-socnets/simple-socnets.php:84
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: delicious, reddit, linkedin, social networks, multisite...
simple-socnets/simple-socnets.php Passed 13 tests
The primary PHP file in "Simple Socnets" version 1.0.2.1 is used by WordPress to initiate all plugin functionality
123 characters long description:
This plugin was built by the Maine WordPress Meetup group to make it really easy to add social network icons to your posts.
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
There were no executable files found in this plugin125 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 11 | 125 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
210 PNG files occupy 0.17MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/blinklist.png | 1.09KB | 0.99KB | ▼ 9.11% |
icons/winksite.png | 0.74KB | 0.56KB | ▼ 23.47% |
icons/hugg.png | 0.30KB | 0.25KB | ▼ 17.95% |
icons/segnalo.png | 1.19KB | 0.72KB | ▼ 39.34% |
icons/gmail.png | 0.20KB | 0.19KB | ▼ 4.88% |