Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.72ms] Passed 4 tests
This is a short check of server-side resources used by AfterWork Delivery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.97 ▲0.91 |
Dashboard /wp-admin | 3.31 ▲0.00 | 58.57 ▲3.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 59.72 ▲6.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.23 ▼7.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.38 ▼3.34 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AfterWork Delivery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.37 | 1.61 ▼0.12 | 45.00 ▼0.10 |
Dashboard /wp-admin | 2,192 ▲21 | 5.57 ▲0.06 | 91.08 ▼13.33 | 41.90 ▼7.16 |
Posts /wp-admin/edit.php | 2,103 ▲24 | 1.98 ▼0.05 | 41.71 ▲4.54 | 37.79 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 18.44 ▲0.04 | 610.80 ▼47.84 | 66.84 ▼6.44 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.22 ▼0.00 | 96.04 ▼2.63 | 40.84 ▼3.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 50% 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
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/afterwork-delivery/data/templates/pages/main.php:1
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/afterwork-delivery/core/classes/wtlv-afterworkdelivery.php:3
- > PHP Notice
Undefined variable: data in wp-content/plugins/afterwork-delivery/data/templates/items/error-heavy.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/afterwork-delivery/data/templates/tabs/express-tarif.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/afterwork-delivery/data/templates/tabs/settings-weights.php:1
- > PHP Fatal error
Uncaught Error: Class 'WT_AfterWorkDelivery' not found in wp-content/plugins/afterwork-delivery/core/classes/wtlv-afterworkdelivery-classic.php:3
- > PHP Fatal error
Uncaught Error: Class 'WT_AfterWorkDelivery' not found in wp-content/plugins/afterwork-delivery/core/classes/wtlv-afterworkdelivery-express.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/afterwork-delivery/data/templates/tabs/classic-tariftable.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/afterwork-delivery/data/templates/tabs/classic-timetable.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/afterwork-delivery/data/templates/areas/page-header.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
afterwork-delivery/index.php 92% from 13 tests
The main PHP file in "AfterWork Delivery" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("afterwork-delivery.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,275 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 300 | 158 | 1,042 |
CSS | 2 | 16 | 0 | 150 |
JavaScript | 1 | 12 | 0 | 83 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 81.25% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 8 | 16.67% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
data/images/afterwork-logo.png | 104.38KB | 44.11KB | ▼ 57.74% |
data/images/logo_plugin.png | 3.29KB | 0.71KB | ▼ 78.27% |