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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.68MB] [CPU: ▼18.73ms] Passed 4 tests
This is a short check of server-side resources used by Easy Attendance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.64 ▼2.75 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.56 ▼5.93 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.56 ▲0.14 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.81 | 24.80 ▼66.36 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.79 ▲1.73 |
Attendance List /wp-admin/edit.php?post_type=tgsea_times | 3.31 | 36.71 |
Export Attendance CSV /wp-admin/edit.php?post_type=tgsea_times&page=tegosoutputcsv | 3.26 | 30.47 |
Add Attendance /wp-admin/post-new.php?post_type=tgsea_times | 3.07 | 24.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Activated_EasyAttendance |
widget_recent-comments |
Browser metrics Passed 4 tests
Easy Attendance: 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 / | 2,875 ▲104 | 13.33 ▼0.85 | 2.08 ▼0.02 | 43.85 ▼3.82 |
Dashboard /wp-admin | 2,253 ▲65 | 5.88 ▲1.00 | 103.44 ▼17.68 | 40.14 ▼5.53 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.02 ▲0.03 | 39.67 ▲4.50 | 37.00 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,570 ▲51 | 18.17 ▼4.92 | 589.75 ▼82.04 | 52.94 ▼5.95 |
Media Library /wp-admin/upload.php | 1,438 ▲56 | 4.27 ▲0.04 | 95.92 ▼1.96 | 41.87 ▼1.70 |
Attendance List /wp-admin/edit.php?post_type=tgsea_times | 1,109 | 2.00 | 32.46 | 28.34 |
Export Attendance CSV /wp-admin/edit.php?post_type=tgsea_times&page=tegosoutputcsv | 913 | 2.06 | 25.30 | 21.28 |
Add Attendance /wp-admin/post-new.php?post_type=tgsea_times | 1,627 | 2.62 | 47.43 | 51.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=tgsea_times&page=tegosoutputcsv
- > Notice in wp-content/plugins/easy-attendance/views/outputcsv.php+5
Undefined variable: title
- > GET request to /wp-admin/edit.php?post_type=tgsea_times&page=tegosoutputcsv
- > Notice in wp-content/plugins/easy-attendance/class.easy-attendance-post.php+279
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=tgsea_times
- > Notice in wp-content/plugins/easy-attendance/class.easy-attendance-post.php+174
Undefined index: post_type
SRP 50% 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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-attendance/templates/single-tgsea.php:1
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/admin-header.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-attendance/views/outputcsv.php on line 2
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/easy-attendance/views/post.php:1
- > PHP Warning
require_once(ABSPATHwp-admin/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/easy-attendance/views/outputcsv.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-attendance/views/outputcsv.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-attendance/views/setting.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: csv attendance member
easy-attendance/easy-attendance.php Passed 13 tests
The primary PHP file in "Easy Attendance" version 1.0.1 is used by WordPress to initiate all plugin functionality
136 characters long description:
"Easy Attendance" provides custom post types in a simplified format.It is possible to output registered custom post types in CSV format.
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
No dangerous file extensions were detected692 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 83 | 82 | 537 |
PO File | 2 | 53 | 60 | 152 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis 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.20 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 25 | |
▷ Static methods | 24 | 96.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 32.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 8 | 88.89% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected