Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.11ms] Passed 4 tests
Server-side resources used by Posteria : Web to Wordpress to Social Media Content Suite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 45.25 ▼0.84 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.78 ▼4.86 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 57.13 ▲9.16 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 99.75 ▼3.30 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 41.12 ▲4.55 |
Server storage [IO: ▲0.70MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 113 new files
Database: 6 new tables, 10 new options
New tables |
---|
wp_oauth_jwt |
wp_oauth_public_keys |
wp_oauth_authorization_codes |
wp_oauth_scopes |
wp_oauth_access_tokens |
wp_oauth_refresh_tokens |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
wp_oauth_activation_time |
can_compress_scripts |
wp_oauth_server_db_version |
theysaidso_admin_options |
wpoauth_version |
db_upgraded |
wo_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Posteria : Web to Wordpress to Social Media Content Suite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.15 ▼1.23 | 1.73 ▼0.05 | 38.69 ▼5.32 |
Dashboard /wp-admin | 2,204 ▲16 | 5.85 ▼0.01 | 108.68 ▼8.60 | 88.48 ▲44.34 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.04 ▲0.03 | 37.15 ▼0.64 | 34.39 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,679 ▲159 | 22.43 ▼0.76 | 674.69 ▲11.55 | 47.73 ▼1.30 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.26 ▲0.04 | 100.43 ▼3.44 | 72.73 ▲27.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 6 tables
- wp_oauth_public_keys
- wp_oauth_jwt
- wp_oauth_refresh_tokens
- wp_oauth_access_tokens
- wp_oauth_authorization_codes
- wp_oauth_scopes
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- wp_oauth_server_db_version
- widget_recent-posts
- theysaidso_admin_options
- wo_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- wp_oauth_activation_time
- wpoauth_version
Smoke tests 50% 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 0% 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
Please take a closer look at the following
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/posteria/includes/admin/tabs/support.php
- > /wp-content/plugins/posteria/library/class-wo-table.php
- > /wp-content/plugins/posteria/includes/functions.php
- > /wp-content/plugins/posteria/wp-oauth-main.php
- > /wp-content/plugins/posteria/library/WPOAuth2/Server.php
- > /wp-content/plugins/posteria/wp-oauth-server.php
- > /wp-content/plugins/posteria/library/class-wo-api.php
- 59× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\ResponseType\\AuthorizationCodeInterface' not found in wp-content/plugins/posteria/library/WPOAuth2/OpenID/ResponseType/AuthorizationCodeInterface.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Controller\\TokenControllerInterface' not found in wp-content/plugins/posteria/library/WPOAuth2/Controller/TokenController.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPOAuth2\\ResponseType\\AuthorizationCode' not found in wp-content/plugins/posteria/library/WPOAuth2/OpenID/ResponseType/AuthorizationCode.php:12
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Storage\\AuthorizationCodeInterface' not found in wp-content/plugins/posteria/library/WPOAuth2/Storage/DynamoDB.php:35
- > PHP Fatal error
Uncaught Error: Class 'WPOAuth2\\ResponseType\\AccessToken' not found in wp-content/plugins/posteria/library/WPOAuth2/ResponseType/CryptoToken.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPOAuth2\\ClientAssertionType\\HttpBasic' not found in wp-content/plugins/posteria/library/WPOAuth2/GrantType/ClientCredentials.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/posteria/includes/admin/tabs/general.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Storage\\AuthorizationCodeInterface' not found in wp-content/plugins/posteria/library/WPOAuth2/Storage/CouchbaseDB.php:17
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\TokenType\\TokenTypeInterface' not found in wp-content/plugins/posteria/library/WPOAuth2/TokenType/Bearer.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Storage\\AuthorizationCodeInterface' not found in wp-content/plugins/posteria/library/WPOAuth2/OpenID/Storage/AuthorizationCodeInterface.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: rss aggregator, social media publishing, rss watch, social media, automatic content writting...
posteria/wp-oauth-server.php 85% from 13 tests
The main PHP file in "Posteria : Web to Wordpress to Social Media Content Suite" ver. 2.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("posteria.php" instead of "wp-oauth-server.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin9,597 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 2,133 | 3,330 | 8,186 |
CSS | 2 | 101 | 164 | 694 |
JavaScript | 5 | 88 | 54 | 588 |
PO File | 1 | 40 | 43 | 128 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 33 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 559 | |
▷ Static methods | 7 | 1.25% |
▷ Public methods | 489 | 87.48% |
▷ Protected methods | 56 | 10.02% |
▷ Private methods | 14 | 2.50% |
Functions | 80 | |
▷ Named functions | 78 | 97.50% |
▷ Anonymous functions | 2 | 2.50% |
Constants | 19 | |
▷ Global constants | 8 | 42.11% |
▷ Class constants | 11 | 57.89% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cer.png | 4.67KB | 4.60KB | ▼ 1.51% |
assets/images/logo.png | 3.77KB | 3.68KB | ▼ 2.18% |
assets/images/openid-config-json.png | 104.42KB | 32.10KB | ▼ 69.26% |
icon.png | 1.28KB | 0.88KB | ▼ 30.73% |