Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.95MB] [CPU: ▲22.34ms] Passed 4 tests
Analyzing server-side resources used by SocialMark - Easy Watermark/Logo on Social Media Post Link Share Preview
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.76 ▲5.30 | 64.11 ▲22.88 |
Dashboard /wp-admin | 8.78 ▲5.47 | 84.11 ▲28.81 |
Posts /wp-admin/edit.php | 8.78 ▲5.42 | 76.13 ▲20.55 |
Add New Post /wp-admin/post-new.php | 9.47 ▲3.59 | 115.52 ▲17.12 |
Media Library /wp-admin/upload.php | 8.78 ▲5.55 | 71.85 ▲36.31 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.78 | 78.38 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 181 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_sm_images |
New WordPress options |
---|
fs_active_plugins |
socialmark_db_version |
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
fs_accounts |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SocialMark - Easy Watermark/Logo on Social Media Post Link Share Preview
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,011 ▲250 | 14.80 ▲0.05 | 1.80 ▼0.37 | 30.27 ▼16.72 |
Dashboard /wp-admin | 2,414 ▲220 | 6.53 ▲0.66 | 136.71 ▲20.75 | 43.62 ▼2.63 |
Posts /wp-admin/edit.php | 2,327 ▲227 | 3.37 ▲1.36 | 57.25 ▲17.07 | 39.44 ▲4.83 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.09 ▼0.01 | 680.93 ▲41.99 | 41.17 ▼8.55 |
Media Library /wp-admin/upload.php | 1,460 ▲69 | 4.11 ▼0.29 | 105.00 ▼3.74 | 48.84 ▼1.03 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,270 | 3.09 | 46.76 | 29.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/socialmark/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 1 table
- wp_sm_images
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_recent-comments
- fs_gdpr
- widget_recent-posts
- socialmark_db_version
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
- fs_accounts
- theysaidso_admin_options
- can_compress_scripts
- ...
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Requires php: Version format is invalid
socialmark/socialmark.php Passed 13 tests
The main file in "SocialMark - Easy Watermark/Logo on Social Media Post Link Share Preview" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Easy way to add/change overlay/watermark to Facebook, Twitter, open graph post preview images.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected31,791 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 7,324 | 16,113 | 31,349 |
JavaScript | 4 | 39 | 61 | 273 |
CSS | 12 | 13 | 0 | 110 |
SVG | 2 | 0 | 0 | 59 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 90.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 173 | 15.28% |
▷ Public methods | 792 | 69.96% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.71% |
Functions | 121 | |
▷ Named functions | 121 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 132 | |
▷ Global constants | 107 | 81.06% |
▷ Class constants | 25 | 18.94% |
▷ Public constants | 25 | 100.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sm_icon.png | 32.87KB | 11.07KB | ▼ 66.31% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |