Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.21ms] Passed 4 tests
An overview of server-side resources used by Social Meta by Brozzme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.57 ▲5.16 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.41 ▼2.91 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 54.22 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.93 ▲3.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.21 ▲2.18 |
Social meta /wp-admin/options-general.php?page=wp-smb-options | 3.23 | 37.72 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wp_smb_gplus_settings |
wp_smb_options_settings |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
wp_smb_fb_settings |
db_upgraded |
wp_smb_twitter_settings |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Meta by Brozzme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.23 ▼0.16 | 1.71 ▲0.02 | 45.15 ▲1.20 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.10 | 82.62 ▼11.66 | 41.26 ▼1.60 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.04 | 36.77 ▼3.18 | 33.53 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.24 ▲0.10 | 666.73 ▼15.28 | 55.42 ▼0.45 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.15 ▼0.02 | 96.49 ▼8.16 | 44.59 ▲0.14 |
Social meta /wp-admin/options-general.php?page=wp-smb-options | 901 | 1.85 | 39.96 | 31.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-meta-by-brozzme/includes/wpsmb_options.php:9
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (17 tag instead of maximum 10)
wp-social-meta-by-brozzme/wp-social-meta-brozzme.php 85% from 13 tests
The main file in "Social Meta by Brozzme" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-social-meta-by-brozzme.php" instead of "wp-social-meta-brozzme.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,066 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 237 | 104 | 943 |
PO File | 1 | 48 | 56 | 111 |
JavaScript | 1 | 3 | 5 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin