Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/training-tools/classes/class-trainingtools.php+440
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.53ms] Passed 4 tests
Analyzing server-side resources used by Training Tools Beta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.22 ▼50.21 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.74 ▼40.71 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.91 ▼40.99 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.25 ▼82.19 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.05 ▼29.86 |
All Page Guides /wp-admin/edit.php?post_type=ttpageguides | 2.10 | 5.33 |
Plugins Dashboard /wp-admin/admin.php?page=trainingtools | 2.10 | 5.75 |
Create /wp-admin/post-new.php?post_type=ttpageguides | 2.10 | 7.29 |
UI Help Content /wp-admin/admin.php?page=trainingtools_tablepages | 2.10 | 6.04 |
Server storage [IO: ▲2.99MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 85 new files
Database: 8 new tables, 13 new options
New tables |
---|
wp_tt_formsmeta |
wp_tt_inputsmeta |
wp_tt_postboxes |
wp_webtechglobal_projects |
wp_tt_pagesmeta |
wp_tt_forms |
wp_tt_postboxesmeta |
wp_tt_pages |
New WordPress options |
---|
widget_recent-comments |
trainingtools_schedule |
trainingtools_installeddate |
theysaidso_admin_options |
trainingtools_formvalidation |
trainingtools_installedversion |
can_compress_scripts |
widget_theysaidso_widget |
trainingtools_is_installed |
trainingtools_settings |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Training Tools Beta
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.25 ▼1.13 | 4.48 ▲2.20 | 40.88 ▼13.53 |
Dashboard /wp-admin | 2,260 ▲72 | 5.83 ▼0.07 | 97.20 ▼18.36 | 38.69 ▼3.56 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.06 ▲0.02 | 38.98 ▲2.63 | 34.57 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,578 ▲50 | 23.36 ▲0.04 | 615.97 ▼22.68 | 50.07 ▲0.40 |
Media Library /wp-admin/upload.php | 1,445 ▲63 | 4.17 ▼0.01 | 93.69 ▼5.28 | 42.14 ▲0.52 |
All Page Guides /wp-admin/edit.php?post_type=ttpageguides | 1,104 | 1.96 | 30.39 | 33.87 |
Plugins Dashboard /wp-admin/admin.php?page=trainingtools | 3,571 | 11.33 | 202.69 | 118.51 |
Create /wp-admin/post-new.php?post_type=ttpageguides | 2,300 | 7.57 | 165.14 | 64.92 |
UI Help Content /wp-admin/admin.php?page=trainingtools_tablepages | 1,081 | 1.99 | 31.90 | 27.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/training-tools/classes/class-trainingtools.php+440
count(): Parameter must be an array or an object that implements Countable
- The plugin did not uninstall successfully, leaving 8 tables in the database
- wp_tt_forms
- wp_tt_postboxesmeta
- wp_tt_pages
- wp_tt_formsmeta
- wp_tt_pagesmeta
- wp_webtechglobal_projects
- wp_tt_postboxes
- wp_tt_inputsmeta
- This plugin did not uninstall successfully, leaving 13 options in the database
- trainingtools_is_installed
- widget_recent-comments
- theysaidso_admin_options
- trainingtools_schedule
- trainingtools_installeddate
- widget_recent-posts
- widget_theysaidso_widget
- trainingtools_installedversion
- trainingtools_formvalidation
- can_compress_scripts
- ...
Smoke tests 0% 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)
These errors were triggered by the plugin
- 117 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools_tablepages
- > Warning in wp-content/plugins/training-tools/classes/class-trainingtools.php+440
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools_tablepages
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools
- > Notice in wp-content/plugins/training-tools/classes/class-ui.php+162
Undefined index: viewtitle
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools
- > Notice in wp-content/plugins/training-tools/classes/class-ui.php+141
Undefined index: tabs
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools
- > Warning in wp-content/plugins/training-tools/classes/class-ui.php+141
Invalid argument supplied for foreach()
- > GET request to /wp-admin/post-new.php?post_type=ttpageguides
- > Warning in wp-includes/class-wp-hook.php+312
call_user_func_array() expects parameter 1 to be a valid callback, function 'trainingtools_save_meta_boxes_pageguides' not found or invalid function name
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
- 30× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/training-tools/classes/class-categories.php
- > /wp-content/plugins/training-tools/views/main.php
- > /wp-content/plugins/training-tools/views/buildpageguides.php
- > /wp-content/plugins/training-tools/classes/class-install.php
- > /wp-content/plugins/training-tools/classes/class-trainingtools.php
- > /wp-content/plugins/training-tools/classes/class-webtechglobal.php
- > /wp-content/plugins/training-tools/views/formhelp.php
- > /wp-content/plugins/training-tools/classes/class-view.php
- > /wp-content/plugins/training-tools/classes/class-phplibrary.php
- > /wp-content/plugins/training-tools/posttypes/pageguides.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'TRAININGTOOLS_UI' not found in wp-content/plugins/training-tools/classes/class-forms.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools_tablepages
- > Network (severe)
wp-content/plugins/trainingtools/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trainingtools_tablepages
- > Network (severe)
wp-content/plugins/trainingtools/css/notifications.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=trainingtools
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=trainingtools
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== training-tools ===
) - Screenshots: These screenshots require images: #1 (Screenshot one.), #2 (Screenshot two.), #3 (Screenshot three.)
training-tools/trainingtools.php 85% from 13 tests
The principal PHP file in "Training Tools Beta" v. 0.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("training-tools.php" instead of "trainingtools.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin9,767 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 2,185 | 6,367 | 7,781 |
PO File | 1 | 623 | 1,388 | 1,339 |
CSS | 3 | 93 | 49 | 615 |
JavaScript | 2 | 11 | 39 | 32 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 38.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 244.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 1 | 3.12% |
▷ Concrete classes | 31 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 520 | |
▷ Static methods | 5 | 0.96% |
▷ Public methods | 505 | 97.12% |
▷ Protected methods | 14 | 2.69% |
▷ Private methods | 1 | 0.19% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 33 | 94.29% |
▷ Class constants | 2 | 5.71% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 2.12MB with 2.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/video-icon.png | 29.27KB | 0.64KB | ▼ 97.82% |
images/trash-icon.png | 29.53KB | 1.05KB | ▼ 96.43% |
images/warning_large.png | 52.42KB | 4.12KB | ▼ 92.14% |
images/success_large.png | 63.58KB | 5.66KB | ▼ 91.09% |
images/info-icon.png | 29.12KB | 1.12KB | ▼ 96.14% |