Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.71MB] [CPU: ▼197.05ms] Passed 4 tests
A check of server-side resources used by Element Lesson Timer for Sensei
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼0.91 | 11.48 ▼22.41 |
Dashboard /wp-admin | 1.94 ▼1.12 | 8.03 ▼39.54 |
Posts /wp-admin/edit.php | 1.94 ▼1.17 | 10.62 ▼40.70 |
Add New Post /wp-admin/post-new.php | 1.94 ▼3.49 | 7.17 ▼685.56 |
Media Library /wp-admin/upload.php | 1.94 ▼1.06 | 11.24 ▼21.00 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 129 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Element Lesson Timer for Sensei
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.25 ▲0.32 | 10.96 ▲1.36 | 47.42 ▼4.33 |
Dashboard /wp-admin | 2,967 ▲33 | 5.96 ▼0.04 | 156.10 ▲4.37 | 122.36 ▼1.98 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 71.10 ▼3.22 | 85.71 ▼10.95 |
Add New Post /wp-admin/post-new.php | 1,615 ▲21 | 21.32 ▲2.54 | 296.07 ▼131.32 | 115.10 ▼14.84 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.02 | 153.09 ▼10.68 | 127.15 ▲1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User warning in wp-content/plugins/sensei-lesson-timer/sensei-lesson-timer.php+602
Sensei Lesson Timer requires the Sensei plugin! Please install and activate Sensei (https://github.com/Automattic/sensei).
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sensei-lesson-timer/src/index.php
- 101× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sensei-lesson-timer/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== sensei-lesson-timer ===
)
sensei-lesson-timer/sensei-lesson-timer.php 92% from 13 tests
This is the main PHP file of "Element Lesson Timer for Sensei" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin3,840 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 587 | 921 | 3,122 |
JSON | 2 | 0 | 0 | 282 |
JavaScript | 2 | 76 | 13 | 273 |
YAML | 3 | 31 | 3 | 123 |
CSS | 2 | 6 | 0 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 1 | 0.93% |
▷ Concrete classes | 106 | 99.07% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 20 | 13.51% |
▷ Public methods | 105 | 70.95% |
▷ Protected methods | 34 | 22.97% |
▷ Private methods | 9 | 6.08% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin