Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.14MB] [CPU: ▼49.86ms] Passed 4 tests
An overview of server-side resources used by tinySocial
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.63 | 13.69 ▼33.10 |
Dashboard /wp-admin | 2.88 ▼0.43 | 19.70 ▼37.18 |
Posts /wp-admin/edit.php | 2.88 ▼0.48 | 17.14 ▼43.66 |
Add New Post /wp-admin/post-new.php | 2.88 ▼3.01 | 20.95 ▼85.51 |
Media Library /wp-admin/upload.php | 2.88 ▼0.35 | 14.68 ▼27.93 |
tinySocial /wp-admin/options-general.php?page=tinysocial | 2.88 | 17.75 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for tinySocial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.59 ▼0.79 | 9.99 ▲7.79 | 38.81 ▼1.26 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼1.09 | 105.22 ▼16.72 | 37.70 ▼16.88 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.01 | 34.68 ▼2.95 | 31.50 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.47 ▼5.78 | 629.77 ▼35.18 | 50.72 ▼0.69 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.02 | 100.39 ▼11.03 | 41.70 ▼6.87 |
tinySocial /wp-admin/options-general.php?page=tinysocial | 976 | 2.03 | 24.02 | 40.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method tinySocial::hide_icon() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=tinysocial
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method tinySocial::hide_icon() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinysocial/tinysocial.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: social networks, share links, google plus, facebook, twitter...
tinysocial/tinysocial.php Passed 13 tests
The primary PHP file in "tinySocial" version 1.3.2 is used by WordPress to initiate all plugin functionality
87 characters long description:
Easy way to insert lightweight social sharing links to your posts/pages via shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin668 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 35 | 591 |
SVG | 14 | 0 | 0 | 46 |
JavaScript | 1 | 1 | 0 | 24 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 45.50 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 28 | 96.55% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin