Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.73ms] Passed 4 tests
A check of server-side resources used by Social Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.94 ▼9.74 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.47 ▲0.47 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.78 ▼4.20 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.69 ▼5.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.50 ▲4.46 |
Social Shortcodes /wp-admin/options-general.php?page=social_shortcodes | 3.23 | 35.22 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Social Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.10 ▼0.43 | 1.64 ▼0.46 | 41.88 ▼8.08 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.05 | 83.48 ▼4.03 | 35.98 ▼2.69 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 37.46 ▼1.11 | 34.08 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.28 ▼4.56 | 623.75 ▼4.21 | 115.49 ▲53.13 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.13 ▼0.15 | 95.88 ▼3.59 | 40.31 ▼1.20 |
Social Shortcodes /wp-admin/options-general.php?page=social_shortcodes | 808 | 2.00 | 25.13 | 25.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-shortcodes/index.php:99
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: social, shortcodes, twitter
social-shortcodes/index.php 92% from 13 tests
The entry point to "Social Shortcodes" version 0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-shortcodes.php" instead of "index.php")
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
No dangerous file extensions were detected550 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 122 | 177 | 438 |
CSS | 1 | 22 | 2 | 92 |
SVG | 4 | 0 | 4 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 5 | 18.52% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected