Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/wpgraphicstudio/includes/install.php+134
Use of undefined constant create_page - assumed 'create_page' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.53MB] [CPU: ▲4.16ms] Passed 4 tests
An overview of server-side resources used by wpGraphicStudio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 51.53 ▲8.38 |
Dashboard /wp-admin | 3.87 ▲0.57 | 100.92 ▲51.00 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 53.94 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 80.99 ▼7.23 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 43.74 ▲9.51 |
Welcome to wpGraphicStudio /wp-admin/index.php?page=wpgs-credits | 3.61 | 42.74 |
Welcome to wpGraphicStudio /wp-admin/index.php?page=wpgs-about | 3.65 | 41.99 |
wpGraphicStudio /wp-admin/admin.php?page=wpgs-core-settings | 3.63 | 39.03 |
Server storage [IO: ▲9.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 135 new files
Database: no new tables, 10 new options
New WordPress options |
---|
create_page |
wpgs_wpgraphicstudio_install |
db_upgraded |
widget_recent-posts |
wpgs_completed_upgrades |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
wpgs_version |
widget_recent-comments |
Browser metrics Passed 4 tests
wpGraphicStudio: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲182 | 13.93 ▼0.40 | 5.37 ▲3.26 | 46.05 ▼2.90 |
Dashboard /wp-admin | 2,236 ▲51 | 5.09 ▼0.77 | 106.82 ▼17.85 | 42.43 ▼1.79 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.59 ▲0.58 | 39.73 ▲2.11 | 46.87 ▲11.42 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 23.55 ▲0.35 | 690.61 ▲10.53 | 36.82 ▼24.31 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.51 ▲0.31 | 115.43 ▲4.77 | 52.83 ▲6.16 |
Welcome to wpGraphicStudio /wp-admin/index.php?page=wpgs-credits | 814 | 2.19 | 28.16 | 20.50 |
Welcome to wpGraphicStudio /wp-admin/index.php?page=wpgs-about | 892 | 2.16 | 30.30 | 48.06 |
wpGraphicStudio /wp-admin/admin.php?page=wpgs-core-settings | 1,223 | 2.20 | 30.69 | 23.92 |
Uninstaller [IO: ▲0.96MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- wpgs_completed_upgrades
- wpgs_version
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/index.php?page=wpgs-credits
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WPGS_Welcome' does not have a method 'credits_screen'
- > GET request to /wp-admin/admin.php?page=wpgs-core-settings
- > Notice in wp-content/plugins/wpgraphicstudio/includes/misc-functions.php+560
Undefined index: settings-updated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpgs-core-settings
- > Notice in wp-content/plugins/wpgraphicstudio/includes/misc-functions.php+649
Undefined variable: remove_settings
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 items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpgraphicstudio/includes/libraries/wp-session.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/wpgraphicstudio/includes/wpgs/templates/headlines.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/wpgraphicstudio/includes/wpgs/templates/web-boxes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpgraphicstudio/includes/libraries/wp_session/wp-session.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wpgraphicstudio/includes/wpgs/templates/create-graphic.php:5
- > PHP Fatal error
Uncaught Error: Class 'Recursive_ArrayAccess' not found in wp-content/plugins/wpgraphicstudio/includes/libraries/class-wp-session.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/wpgraphicstudio/includes/wpgs/templates/belcher-boxes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpgraphicstudio/includes/class-wpgs-cron.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/wpgraphicstudio/includes/wpgs/templates/buttons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/wpgraphicstudio/includes/wpgs/templates/cta-boxes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 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
3 plugin tags: generator, affiliate marketing graphics, graphics
wpgraphicstudio/wp-graphic-studio.php 69% from 13 tests
The main file in "wpGraphicStudio" v. 6.4.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpgraphicstudio.php" instead of "wp-graphic-studio.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
There were no executable files found in this plugin11,554 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,373 | 3,778 | 7,422 |
JavaScript | 8 | 487 | 338 | 2,480 |
CSS | 14 | 104 | 379 | 1,572 |
XML | 1 | 5 | 0 | 44 |
SVG | 1 | 0 | 0 | 36 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 525)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 86.55 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 764.00 |
Average method complexity | 7.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 525.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 2 | 18.18% |
Methods | 148 | |
▷ Static methods | 3 | 2.03% |
▷ Public methods | 134 | 90.54% |
▷ Protected methods | 6 | 4.05% |
▷ Private methods | 8 | 5.41% |
Functions | 150 | |
▷ Named functions | 150 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
40 PNG files occupy 0.83MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpgraphicstudio-logo.png | 16.63KB | 7.91KB | ▼ 52.44% |
includes/wpgs/assets/images/wpgraphicstudio-logo.png | 16.63KB | 7.91KB | ▼ 52.44% |
includes/wpgs/images/info.png | 1.52KB | 1.49KB | ▼ 2.37% |
includes/wpgs/images/web-boxes/web-boxes.png | 19.55KB | 9.11KB | ▼ 53.41% |
includes/wpgs/images/success.png | 1.17KB | 1.19KB | 0.00% |