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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.65 ▼0.81 | 8.80 ▼30.33 |
Dashboard /wp-admin | 2.75 ▼0.55 | 9.94 ▼36.98 |
Posts /wp-admin/edit.php | 2.75 ▼0.61 | 9.69 ▼36.49 |
Add New Post /wp-admin/post-new.php | 2.75 ▼3.14 | 10.74 ▼93.88 |
Media Library /wp-admin/upload.php | 2.75 ▼0.48 | 13.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲202 | 13.85 ▼0.76 | 2.41 ▲0.49 | 45.58 ▼2.39 |
Dashboard /wp-admin | 2,364 ▲173 | 5.66 ▼0.22 | 101.60 ▲2.34 | 104.58 ▲61.51 |
Posts /wp-admin/edit.php | 2,242 ▲153 | 2.54 ▲0.55 | 41.16 ▲5.50 | 38.38 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6,555 ▲5,018 | 27.31 ▲9.04 | 895.97 ▲254.26 | 37.51 ▼20.39 |
Media Library /wp-admin/upload.php | 1,545 ▲157 | 4.79 ▲0.58 | 106.37 ▼4.09 | 84.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,391 | 96,780 | 6,737 |
CSS | 3 | 2,929 | 13 | 3,111 |
Markdown | 2 | 376 | 0 | 1,185 |
JavaScript | 8 | 102 | 102 | 1,169 |
HTML | 3 | 31 | 19 | 480 |
PO File | 1 | 37 | 40 | 83 |
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 code | 0.44 |
Average class complexity | 39.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 351 | |
▷ Static methods | 64 | 18.23% |
▷ Public methods | 290 | 82.62% |
▷ Protected methods | 61 | 17.38% |
▷ Private methods | 0 | 0.00% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 18 | 50.00% |
▷ Class constants | 18 | 50.00% |
▷ Public constants | 18 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/preview.png | 23.89KB | 25.47KB | 0.00% |
admin/img/icon-android.png | 0.40KB | 0.41KB | 0.00% |
admin/img/logo.png | 2.27KB | 2.30KB | 0.00% |
admin/img/icon-ios.png | 0.42KB | 0.43KB | 0.00% |
admin/img/phone.png | 9.99KB | 10.25KB | 0.00% |