84% stionic-users

Code Review | Stionic Users - WordPress Users API

WordPress plugin Stionic Users - WordPress Users API scored84%from 54 tests.

About plugin

  • Plugin page: stionic-users
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 25, 2018
  • Latest release: Feb 1, 2022
  • Number of updates: 16
  • Update frequency: every 89.8 days
  • Top authors: stionic (87.5%)noncheat (18.75%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼18.00ms] Passed 4 tests

This is a short check of server-side resources used by Stionic Users - WordPress Users API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.62 ▲0.08
Dashboard /wp-admin3.42 ▲0.1150.28 ▼3.28
Posts /wp-admin/edit.php3.53 ▲0.1745.14 ▼4.94
Add New Post /wp-admin/post-new.php3.30 ▼2.5935.88 ▼63.84
Media Library /wp-admin/upload.php3.34 ▲0.1134.50 ▲1.29

Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Stionic Users - WordPress Users API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.061.77 ▲0.0247.61 ▲2.44
Dashboard /wp-admin2,195 ▲275.55 ▼0.0282.64 ▼14.6338.73 ▼9.91
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0435.13 ▼6.1434.62 ▼2.80
Add New Post /wp-admin/post-new.php1,535 ▼218.28 ▼0.22626.41 ▲1.6866.81 ▼3.52
Media Library /wp-admin/upload.php1,397 ▼64.14 ▼0.1294.33 ▼2.2342.21 ▼1.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/stionic-users/endpoints/Facebook/Http/RequestBodyMultipart.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/stionic-users/endpoints/Facebook/Exceptions/FacebookClientException.php:32
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\PersistentData\\PersistentDataInterface' not found in wp-content/plugins/stionic-users/endpoints/Facebook/PersistentData/FacebookMemoryPersistentDataHandler.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/stionic-users/endpoints/Facebook/GraphNodes/GraphCoverPhoto.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/stionic-users/endpoints/Facebook/GraphNodes/GraphObject.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/stionic-users/endpoints/Facebook/GraphNodes/GraphGroup.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/stionic-users/endpoints/Facebook/GraphNodes/GraphEdge.php:36
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/stionic-users/endpoints/Facebook/HttpClients/FacebookStreamHttpClient.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/stionic-users/endpoints/Facebook/GraphNodes/GraphSessionInfo.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/stionic-users/endpoints/Facebook/GraphNodes/GraphPicture.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: mobile app wordpress, wordpress users, create app, api

stionic-users/stionic-users.php Passed 13 tests

Analyzing the main PHP file in "Stionic Users - WordPress Users API" version 1.0.2
35 characters long description:
Users API for Wordpress application

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
There were no executable files found in this plugin4,584 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
PHP821,1845,6674,584

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.86
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces11
Interfaces5
Traits1
Classes74
▷ Abstract classes11.35%
▷ Concrete classes7398.65%
▷ Final classes00.00%
Methods526
▷ Static methods173.23%
▷ Public methods48291.63%
▷ Protected methods264.94%
▷ Private methods183.42%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin