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
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/stopwatch/MyPlugIn.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; iPadStopwatchWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼195.13ms] Passed 4 tests
A check of server-side resources used by Stopwatch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.06 | 5.39 ▼33.07 |
Dashboard /wp-admin | 1.79 ▼1.26 | 5.13 ▼40.33 |
Posts /wp-admin/edit.php | 1.79 ▼1.31 | 6.29 ▼39.10 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.64 | 5.37 ▼668.03 |
Media Library /wp-admin/upload.php | 1.79 ▼1.21 | 6.22 ▼28.66 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ipadstopwatchwidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Stopwatch
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.90 ▼0.07 | 8.86 ▲0.04 | 47.13 ▼3.45 |
Dashboard /wp-admin | 2,967 ▲36 | 5.89 ▼0.33 | 152.49 ▼2.62 | 105.06 ▼2.49 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.83 ▲0.13 | 68.18 ▼4.14 | 88.60 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,604 ▼11 | 18.59 ▼2.83 | 389.45 ▲55.81 | 108.93 ▲9.15 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.01 | 153.99 ▼13.01 | 114.48 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/stopwatch/MyPlugIn.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; iPadStopwatchWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_ipadstopwatchwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stopwatch/MyPlugIn.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Donate link: Invalid URI found ("")
stopwatch/MyPlugIn.php 92% from 13 tests
"Stopwatch" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stopwatch.php" instead of "MyPlugIn.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected42 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 8 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin