Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/cron.php+303
Illegal offset type
Server metrics [RAM: ▲5.40MB] [CPU: ▼25.52ms] 75% from 4 tests
This is a short check of server-side resources used by Social Media Station
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.40MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.39 ▲5.93 | 34.53 ▼6.64 |
Dashboard /wp-admin | 9.41 ▲6.10 | 40.63 ▼14.91 |
Posts /wp-admin/edit.php | 9.41 ▲6.05 | 44.80 ▼8.59 |
Add New Post /wp-admin/post-new.php | 9.41 ▲3.52 | 36.26 ▼71.94 |
Media Library /wp-admin/upload.php | 9.41 ▲6.18 | 46.37 ▲9.68 |
New Social media post /wp-admin/post-new.php?post_type=social_media | 9.41 | 37.91 |
Social media /wp-admin/edit.php?post_type=social_media | 9.41 | 48.09 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 9.41 | 37.78 |
Server storage [IO: ▲5.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 323 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_gdpr |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
fs_active_plugins |
widget_recent-comments |
fs_accounts |
fs_debug_mode |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Media Station
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 14.44 ▲0.08 | 1.63 ▼0.26 | 33.58 ▼11.11 |
Dashboard /wp-admin | 2,281 ▲87 | 4.87 ▼0.02 | 104.13 ▼9.17 | 39.75 ▼14.43 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.01 ▲0.04 | 38.50 ▲0.20 | 35.38 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,723 ▲192 | 23.68 ▲0.51 | 593.31 ▼10.40 | 66.05 ▲15.75 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.26 ▼0.05 | 104.17 ▼9.03 | 85.96 ▲39.90 |
New Social media post /wp-admin/post-new.php?post_type=social_media | 1,826 | 17.85 | 925.32 | 43.59 |
Social media /wp-admin/edit.php?post_type=social_media | 1,176 | 1.96 | 38.28 | 35.78 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,112 | 1.84 | 29.13 | 32.62 |
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
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/cron.php+303
Illegal offset type
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_debug_mode
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- fs_active_plugins
- fs_accounts
- fs_gdpr
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-includes/cron.php+303
Illegal offset type
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
Almost there! Just fix the following items
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookAuthenticationException.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphUser.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php:36
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphEdge.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PersistentData\\PersistentDataInterface' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/PersistentData/FacebookMemoryPersistentDataHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphGroup.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/Http/RequestBodyUrlEncoded.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Url\\UrlDetectionInterface' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/Url/FacebookUrlDetectionHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookResponse' not found in wp-content/plugins/social-media-station/vendor/facebook/graph-sdk/src/Facebook/FacebookBatchResponse.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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 to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Social media post scheduling form.), #2 (Social media station configuration form.)
social-media-station/social-media-station.php Passed 13 tests
Analyzing the main PHP file in "Social Media Station" version 0.1.0
47 characters long description:
Manage social media posts on a single platform.
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
Success! There were no dangerous files found in this plugin69,166 lines of code in 268 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 222 | 9,481 | 23,844 | 39,981 |
JSON | 9 | 0 | 0 | 28,214 |
JavaScript | 11 | 69 | 131 | 431 |
Markdown | 4 | 112 | 0 | 327 |
JSX | 3 | 21 | 1 | 168 |
Sass | 3 | 3 | 0 | 29 |
CSS | 16 | 0 | 0 | 16 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 35.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 137 | |
▷ Abstract classes | 4 | 2.92% |
▷ Concrete classes | 133 | 97.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,917 | |
▷ Static methods | 247 | 12.88% |
▷ Public methods | 1,456 | 75.95% |
▷ Protected methods | 47 | 2.45% |
▷ Private methods | 414 | 21.60% |
Functions | 100 | |
▷ Named functions | 93 | 93.00% |
▷ Anonymous functions | 7 | 7.00% |
Constants | 173 | |
▷ Global constants | 99 | 57.23% |
▷ Class constants | 74 | 42.77% |
▷ Public constants | 71 | 95.95% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.49MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 139.41KB | 36.81KB | ▼ 73.60% |
freemius/assets/img/social-media-station.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/banner-700x250.png | 199.12KB | 125.81KB | ▼ 36.82% |
assets/screenshot-2.png | 131.18KB | 32.46KB | ▼ 75.26% |