68% posteria

Code Review | Posteria : Web to Wordpress to Social Media Content Suite

WordPress plugin Posteria : Web to Wordpress to Social Media Content Suite scored68%from 54 tests.

About plugin

  • Plugin page: posteria
  • Plugin version: 2.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2021
  • Latest release: May 17, 2023
  • Number of updates: 118
  • Update frequency: every 6.5 days
  • Top authors: isoluce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,809 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1645.25 ▼0.84
Dashboard /wp-admin3.36 ▲0.0652.78 ▼4.86
Posts /wp-admin/edit.php3.42 ▲0.0757.13 ▲9.16
Add New Post /wp-admin/post-new.php5.96 ▲0.0899.75 ▼3.30
Media Library /wp-admin/upload.php3.29 ▲0.0741.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.15 ▼1.231.73 ▼0.0538.69 ▼5.32
Dashboard /wp-admin2,204 ▲165.85 ▼0.01108.68 ▼8.6088.48 ▲44.34
Posts /wp-admin/edit.php2,105 ▲132.04 ▲0.0337.15 ▼0.6434.39 ▼1.18
Add New Post /wp-admin/post-new.php1,679 ▲15922.43 ▼0.76674.69 ▲11.5547.73 ▼1.30
Media Library /wp-admin/upload.php1,398 ▲134.26 ▲0.04100.43 ▼3.4472.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP962,1333,3308,186
CSS2101164694
JavaScript58854588
PO File14043128
HTML1001

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 code0.35
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces12
Interfaces33
Traits0
Classes43
▷ Abstract classes00.00%
▷ Concrete classes43100.00%
▷ Final classes00.00%
Methods559
▷ Static methods71.25%
▷ Public methods48987.48%
▷ Protected methods5610.02%
▷ Private methods142.50%
Functions80
▷ Named functions7897.50%
▷ Anonymous functions22.50%
Constants19
▷ Global constants842.11%
▷ Class constants1157.89%
▷ Public constants11100.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
FileSize - originalSize - compressedSavings
assets/images/cer.png4.67KB4.60KB▼ 1.51%
assets/images/logo.png3.77KB3.68KB▼ 2.18%
assets/images/openid-config-json.png104.42KB32.10KB▼ 69.26%
icon.png1.28KB0.88KB▼ 30.73%