79% stionic-core

Code Review | Stionic Core - Create Mobile app for WordPress news

WordPress plugin Stionic Core - Create Mobile app for WordPress news scored79%from 54 tests.

About plugin

  • Plugin page: stionic-core
  • Plugin version: 1.0.28
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2017
  • Latest release: Mar 27, 2022
  • Number of updates: 71
  • Update frequency: every 22.3 days
  • Top authors: stionic (85.92%)noncheat (15.49%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,390 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.38MB] [CPU: ▼10.18ms] Passed 4 tests

Analyzing server-side resources used by Stionic Core - Create Mobile app for WordPress news
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2940.91 ▲0.78
Dashboard /wp-admin3.64 ▲0.3457.68 ▲6.63
Posts /wp-admin/edit.php3.70 ▲0.3451.63 ▲4.05
Add New Post /wp-admin/post-new.php3.46 ▼2.4339.34 ▼52.07
Media Library /wp-admin/upload.php3.50 ▲0.2842.08 ▲6.54
OneSignal /wp-admin/admin.php?page=stionic-onesignal3.5136.91
Categories /wp-admin/admin.php?page=stionic-categories3.4930.94
Media /wp-admin/admin.php?page=stionic-media3.4837.96
DeepLinks /wp-admin/admin.php?page=stionic-deeplinks3.4837.95
General /wp-admin/admin.php?page=stionic3.5634.81

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
stionic_media
widget_theysaidso_widget
stionic_settings
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Stionic Core - Create Mobile app for WordPress news
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17014.63 ▲0.051.94 ▼0.1844.32 ▼0.68
Dashboard /wp-admin2,337 ▲1344.88 ▼1.03116.38 ▼2.7544.33 ▼2.78
Posts /wp-admin/edit.php2,234 ▲1372.03 ▼0.0236.28 ▼0.8735.18 ▼3.22
Add New Post /wp-admin/post-new.php6,339 ▲4,80518.83 ▼4.49886.86 ▲195.7164.35 ▲10.72
Media Library /wp-admin/upload.php1,516 ▲1224.23 ▲0.02101.28 ▲1.2445.67 ▼1.46
OneSignal /wp-admin/admin.php?page=stionic-onesignal1,0322.0327.4330.34
Categories /wp-admin/admin.php?page=stionic-categories9862.0929.1028.36
Media /wp-admin/admin.php?page=stionic-media9872.0726.7727.97
DeepLinks /wp-admin/admin.php?page=stionic-deeplinks1,0362.0524.3627.17
General /wp-admin/admin.php?page=stionic1,2142.2224.5627.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • stionic_media
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • stionic_settings

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)
Please fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=stionic-deeplinks
    • > Notice in wp-content/plugins/stionic-core/admin/templates/deeplinks.php+79
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=stionic-media
    • > Notice in wp-content/plugins/stionic-core/admin/templates/media.php+62
    Undefined index: disable_featured
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+69
    Undefined index: maintenance
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+77
    Undefined index: android_banner
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+78
    Undefined index: ios_banner
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+80
    Undefined index: android_interstitial
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+81
    Undefined index: ios_interstitial
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+83
    Undefined index: android_rewards
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+84
    Undefined index: ios_rewards
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+101
    Undefined index: ads_default_reward
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+107
    Undefined index: google_analytics
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+112
    Undefined index: package
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+113
    Undefined index: apple_id
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+144
    Undefined index: version
    • > GET request to /wp-admin/admin.php?page=stionic
    • > Notice in wp-content/plugins/stionic-core/admin/templates/general.php+145
    Undefined index: version_ios

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/stionic-core/admin/class-stionic-walker.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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, api, create app, wordpress news app

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

The entry point to "Stionic Core - Create Mobile app for WordPress news" version 1.0.28 is a PHP file that has certain tags in its header comment area
48 characters long description:
Extending the REST API for WordPress application

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,055 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP21431361,803
JavaScript401134
CSS300118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.00
▷ Minimum class complexity2.00
▷ Maximum class complexity63.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods66
▷ Static methods34.55%
▷ Public methods66100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-edge.png6.63KB3.03KB▼ 54.28%
assets/img/icon-firefox.png7.33KB3.32KB▼ 54.64%
assets/img/icon-netscape.png5.94KB3.02KB▼ 49.18%
assets/img/icon-ucbrowser.png7.13KB3.74KB▼ 47.49%
assets/img/icon-miuibrowser.png0.97KB1.20KB0.00%