10% wp-bigapp

Code Review | WP-BigApp

WordPress plugin WP-BigApp scored 10% from 54 tests.

About plugin

  • Plugin page: wp-bigapp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Mar 16, 2016
  • Number of updates: 7
  • Update frequency: every 28.6 days
  • Top authors: youzu_bigapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,514 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-customposttype.php+109
    Declaration of WP_JSON_CustomPostType::get_posts($filter = Array, $context = 'view', $type = NULL, $page = 1) should be compatible with WP_JSON_Posts::get_posts($filter = Array, $context = 'view', $type = 'post', $page = 1, $offline = false)

Server metrics [RAM: ▼1.28MB] [CPU: ▼49.42ms] Passed 4 tests

Analyzing server-side resources used by WP-BigApp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.65 ▼0.818.80 ▼30.33
Dashboard /wp-admin2.75 ▼0.559.94 ▼36.98
Posts /wp-admin/edit.php2.75 ▼0.619.69 ▼36.49
Add New Post /wp-admin/post-new.php2.75 ▼3.1410.74 ▼93.88
Media Library /wp-admin/upload.php2.75 ▼0.4813.25 ▼22.10

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-BigApp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲20213.85 ▼0.762.41 ▲0.4945.58 ▼2.39
Dashboard /wp-admin2,364 ▲1735.66 ▼0.22101.60 ▲2.34104.58 ▲61.51
Posts /wp-admin/edit.php2,242 ▲1532.54 ▲0.5541.16 ▲5.5038.38 ▲6.07
Add New Post /wp-admin/post-new.php6,555 ▲5,01827.31 ▲9.04895.97 ▲254.2637.51 ▼20.39
Media Library /wp-admin/upload.php1,545 ▲1574.79 ▲0.58106.37 ▼4.0984.69 ▲37.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-customposttype.php+109
    Declaration of WP_JSON_CustomPostType::get_posts($filter = Array, $context = 'view', $type = NULL, $page = 1) should be compatible with WP_JSON_Posts::get_posts($filter = Array, $context = 'view', $type = 'post', $page = 1, $offline = false)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-bigapp/lib/captcha/example-form.php
    • > /wp-content/plugins/wp-bigapp/lib/captcha/resources/tools/dictionary-import/importwords.php
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_JSON_CustomPostType' not found in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-pages.php:21
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp-bigapp/api/YZ_APP_API_VERSION/admin_api.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bigapp/admin/bigapp-admin.class.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-bigapp/lib/captcha/resources/tools/dictionary-import/importwords.php on line 23
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_JSON_ResponseInterface' not found in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-response.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-server.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-server.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_JSON_Posts' not found in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-media.php:3
    • > PHP Warning
      require_once(wp-content/plugins/wp-bigapp/api/YZ_APP_API_VERSION/admin_api.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bigapp/admin/bigapp-admin.class.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-server.php on line 10
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bigapp/lib/json/class-wp-json-server.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-bigapp === )
You can look at the official readme.txt

wp-bigapp/bigapp.php 92% from 13 tests

Analyzing the main PHP file in "WP-BigApp" version 1.0.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-bigapp.php" instead of "bigapp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin12,765 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP381,39196,7806,737
CSS32,929133,111
Markdown237601,185
JavaScript81021021,169
HTML33119480
PO File1374083

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity39.13
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes00.00%
Methods351
▷ Static methods6418.23%
▷ Public methods29082.62%
▷ Protected methods6117.38%
▷ Private methods00.00%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants36
▷ Global constants1850.00%
▷ Class constants1850.00%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/preview.png23.89KB25.47KB0.00%
admin/img/icon-android.png0.40KB0.41KB0.00%
admin/img/logo.png2.27KB2.30KB0.00%
admin/img/icon-ios.png0.42KB0.43KB0.00%
admin/img/phone.png9.99KB10.25KB0.00%