Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/basic-dev-tools/includes/tableobject/table_object.php+50
Undefined index: page
Server metrics [RAM: ▼1.89MB] [CPU: ▼188.91ms] Passed 4 tests
A check of server-side resources used by Basic Dev Tools
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 5.65 ▼27.99 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.87 ▼35.63 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 5.13 ▼41.28 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.69 ▼650.51 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 5.94 ▼28.22 |
Post Type Manager /wp-admin/admin.php?page=basic-dev-tools/includes/post-type-manager.php | 1.76 | 5.76 |
Cron Manager /wp-admin/admin.php?page=basic-dev-tools/includes/cron-manager.php | 1.76 | 5.38 |
Special Settings /wp-admin/admin.php?page=basic-dev-tools/includes/index.php | 1.76 | 5.64 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: 2 new tables, no new options
New tables |
---|
basictools_cron_schedules |
basictools_post_types |
Browser metrics Passed 4 tests
Checking browser requirements for Basic Dev Tools
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.78 ▲0.35 | 7.53 ▼0.44 | 42.80 ▼0.86 |
Dashboard /wp-admin | 3,004 ▲67 | 5.86 ▼0.23 | 150.69 ▲1.93 | 114.21 ▲8.03 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.70 ▲0.01 | 75.45 ▲6.66 | 98.78 ▲10.47 |
Add New Post /wp-admin/post-new.php | 1,705 ▲22 | 18.72 ▲0.03 | 367.46 ▼33.56 | 103.66 ▼0.55 |
Media Library /wp-admin/upload.php | 1,838 ▲13 | 5.04 ▲0.03 | 164.27 ▲2.08 | 111.33 ▲4.19 |
Post Type Manager /wp-admin/admin.php?page=basic-dev-tools/includes/post-type-manager.php | 1,163 | 2.24 | 55.13 | 58.68 |
Cron Manager /wp-admin/admin.php?page=basic-dev-tools/includes/cron-manager.php | 1,740 | 2.12 | 55.83 | 71.32 |
Special Settings /wp-admin/admin.php?page=basic-dev-tools/includes/index.php | 1,172 | 2.11 | 55.30 | 64.94 |
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
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/basic-dev-tools/includes/tableobject/table_object.php+50
Undefined index: page
Smoke tests 25% 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 server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/index.php
- > Notice in wp-content/plugins/basic-dev-tools/includes/cron-manager.php+55
Undefined index: schedule_manager_add
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/index.php
- > Notice in wp-content/plugins/basic-dev-tools/includes/cron-manager.php+55
Undefined index: schedule_manager_edit
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/index.php
- > Notice in wp-content/plugins/basic-dev-tools/includes/tableobject/table_object.php+103
Undefined index: select
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/index.php
- > Notice in wp-content/plugins/basic-dev-tools/includes/tableobject/table_object.php+123
Undefined index: query_formats
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/index.php
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/index.php
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/admin.php?page=basic-dev-tools/includes/cron-manager.php
- > Deprecated in wp-content/plugins/basic-dev-tools/includes/cron-manager.php+343
The each() function is deprecated. This message will be suppressed on further calls
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/basic-dev-tools/basic-dev-tools.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_schedules() in wp-content/plugins/basic-dev-tools/includes/cron-manager.php:43
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/basic-dev-tools/includes/tableobject/templates/generic_form.php:1
- > PHP Notice
Undefined index: page in wp-content/plugins/basic-dev-tools/includes/tableobject/table_object.php on line 50
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/basic-dev-tools/includes/index.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/basic-dev-tools/includes/tableobject/templates/reduced_form.php:21
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/basic-dev-tools/includes/tableobject/templates/generic_show.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/basic-dev-tools/includes/tableobject/templates/reduced_show.php:7
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (On activation, the plugin adds a new menu with the available tools to use.), #2 (Special Settings page.), #3 (Task Manager Section in Cron Manager Page.), #4 (Schedules Manager Section in Cron Manager Page.), #5 (Post Types Manager Page with some items.)
basic-dev-tools/basic-dev-tools.php Passed 13 tests
"Basic Dev Tools" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Basic Tools and Functions for Development
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,255 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 198 | 25 | 1,255 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 50.25 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.20MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 29.13KB | 6.71KB | ▼ 76.96% |
screenshot-3.png | 73.53KB | 21.24KB | ▼ 71.11% |
screenshot-5.png | 49.58KB | 13.15KB | ▼ 73.47% |
screenshot-1.png | 16.60KB | 3.79KB | ▼ 77.14% |
screenshot-2.png | 35.73KB | 6.99KB | ▼ 80.44% |