10% joudisoft-general-wp-mobile-application

Code Review | joudiSoft General WordPress Mobile Application

WordPress plugin joudiSoft General WordPress Mobile Application scored 10% from 54 tests.

About plugin

  • Plugin page: joudisoft-general...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Aug 10, 2019
  • Number of updates: 15
  • Update frequency: every 20.6 days
  • Top authors: joudisoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,425 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/joudisoft-general-wp-mobile-application/functions/options-functions.php+4
    Trying to access array offset on value of type null

Server metrics [RAM: ▼0.45MB] [CPU: ▼17.05ms] Passed 4 tests

Analyzing server-side resources used by joudiSoft General WordPress Mobile Application
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.93 ▼2.19
Dashboard /wp-admin3.53 ▲0.2249.96 ▲5.41
Posts /wp-admin/edit.php3.64 ▲0.2847.11 ▼2.75
Add New Post /wp-admin/post-new.php3.40 ▼2.4839.26 ▼61.90
Media Library /wp-admin/upload.php3.45 ▲0.2236.72 ▼1.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 203 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

joudiSoft General WordPress Mobile Application: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.25 ▼1.334.80 ▲2.5950.10 ▲0.79
Dashboard /wp-admin2,215 ▲275.83 ▼0.0597.76 ▼11.2938.36 ▼3.15
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0135.11 ▼6.7533.55 ▼4.87
Add New Post /wp-admin/post-new.php1,552 ▲3318.51 ▼4.50587.91 ▼100.9254.88 ▼14.64
Media Library /wp-admin/upload.php1,400 ▲94.22 ▲0.0194.23 ▼8.1241.16 ▼4.49

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/functions/render-functions.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/app-init.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/functions/on-demand/jsoft_awp_http_build_url.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/render.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/functions/awp-functions.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/functions/jsoft-functions.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/viewmissed.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/functions.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/ionic.php
    • > /wp-content/plugins/joudisoft-general-wp-mobile-application/appbox-wordpress-general.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/joudisoft-general-wp-mobile-application/classes/jsoft_awp_div.class.php on line 5769
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/joudisoft-general-wp-mobile-application/classes/jsoft_awp_div.class.php on line 5753
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/joudisoft-general-wp-mobile-application/classes/jsoft_awp_div.class.php on line 5745
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/joudisoft-general-wp-mobile-application/wp-json.php:2
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/joudisoft-general-wp-mobile-application/classes/jsoft_awp_div.class.php on line 5737
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/joudisoft-general-wp-mobile-application/classes/jsoft_awp_div.class.php on line 5727
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/joudisoft-general-wp-mobile-application/classes/jsoft_awp_div.class.php on line 5761

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

joudisoft-general-wp-mobile-application/appbox-wordpress-general.php 92% from 13 tests

The main PHP file in "joudiSoft General WordPress Mobile Application" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("joudisoft-general-wp-mobile-application.php" instead of "appbox-wordpress-general.php")

Code Analysis 97% from 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
No dangerous file extensions were detected26,899 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
CSS123808510,366
PHP431,7171,6999,018
JavaScript76233963,552
SVG2002,900
Smarty12501,063

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,530)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity826.00
▷ Minimum class complexity122.00
▷ Maximum class complexity1,530.00
Average method complexity8.75
▷ Minimum method complexity1.00
▷ Maximum method complexity97.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods211
▷ Static methods7535.55%
▷ Public methods16779.15%
▷ Protected methods3416.11%
▷ Private methods104.74%
Functions52
▷ Named functions5096.15%
▷ Anonymous functions23.85%
Constants149
▷ Global constants14899.33%
▷ Class constants10.67%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
99 PNG files occupy 4.31MB with 2.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-7.png67.65KB69.83KB0.00%
assets/img/resources/notification_icons/v1_13.png21.33KB3.16KB▼ 85.19%
assets/img/icon.png13.02KB5.74KB▼ 55.94%
assets/img/resources/notification_icons/v1_23.png21.81KB3.59KB▼ 83.52%
assets/img/resources/notification_icons/v1_53.png16.52KB2.42KB▼ 85.36%