Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.95ms] Passed 4 tests
An overview of server-side resources used by Dev Studio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 40.66 ▲0.01 |
Dashboard /wp-admin | 3.69 ▲0.39 | 47.52 ▼1.57 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 49.65 ▲2.61 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 91.30 ▼12.85 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.21 ▲3.77 |
Server storage [IO: ▲0.65MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
dev-studio_options |
Browser metrics Passed 4 tests
Dev Studio: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,011 ▲276 | 13.31 ▼1.44 | 6.31 ▲4.54 | 44.99 ▼1.51 |
Dashboard /wp-admin | 2,305 ▲117 | 5.96 ▲1.09 | 111.55 ▼9.02 | 72.54 ▲24.89 |
Posts /wp-admin/edit.php | 2,206 ▲117 | 2.10 ▲0.13 | 36.20 ▼2.15 | 40.66 ▲9.10 |
Add New Post /wp-admin/post-new.php | 1,639 ▲125 | 21.11 ▲3.34 | 775.39 ▲116.93 | 57.81 ▼0.11 |
Media Library /wp-admin/upload.php | 1,493 ▲102 | 4.27 ▲0.08 | 101.09 ▲3.50 | 81.90 ▲38.71 |
Uninstaller [IO: ▲0.77MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- dev-studio_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dev-studio/templates/messages/error-box.php
- > /wp-content/plugins/dev-studio/templates/data/array.php
- > /wp-content/plugins/dev-studio/templates/data/table.php
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function DevStudio() in wp-content/plugins/dev-studio/templates/bar.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dev-studio/templates/data/array.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'DevStudio\\Core\\Abstracts\\Module' not found in wp-content/plugins/dev-studio/app/Modules/MySQL/MySQL.php:13
- > PHP Fatal error
Uncaught Error: Class 'DevStudio\\Core\\Abstracts\\Component' not found in wp-content/plugins/dev-studio/app/Modules/Wordpress/Components/Locale/Locale.php:17
- > PHP Notice
Undefined variable: data in wp-content/plugins/dev-studio/templates/data/array.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'DevStudio\\Core\\Abstracts\\Component' not found in wp-content/plugins/dev-studio/app/Modules/Wordpress/Components/Shortcodes/Shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Class 'DevStudio\\Core\\Abstracts\\Component' not found in wp-content/plugins/dev-studio/app/Modules/PHP/Components/PHPInfo/PHPInfo.php:18
- > PHP Notice
Undefined variable: data in wp-content/plugins/dev-studio/templates/messages/error-box.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/dev-studio/templates/data/table.php on line 100
- > PHP Fatal error
Uncaught Error: Class 'DevStudio\\Core\\Abstracts\\Component' not found in wp-content/plugins/dev-studio/app/Modules/MySQL/Components/Overview/Overview.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: queries, developer, dev studio, query monitor, utilities...
dev-studio/dev-studio.php 92% from 13 tests
The main PHP script in "Dev Studio" version 2.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "7.0, WP_DEBUG is set to true")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,173 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,710 | 2,305 | 7,088 |
SVG | 2 | 1 | 0 | 82 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short 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.49 |
Average class complexity | 9.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 7 | 6.73% |
▷ Concrete classes | 97 | 93.27% |
▷ Final classes | 0 | 0.00% |
Methods | 363 | |
▷ Static methods | 65 | 17.91% |
▷ Public methods | 340 | 93.66% |
▷ Protected methods | 12 | 3.31% |
▷ Private methods | 11 | 3.03% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 2.19KB | 1.09KB | ▼ 50.31% |