Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲79.92ms] Passed 4 tests
A check of server-side resources used by Doctor Agenda
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 37.34 ▼2.97 |
Dashboard /wp-admin | 3.21 ▲0.15 | 378.77 ▲326.39 |
Posts /wp-admin/edit.php | 3.26 ▲0.16 | 339.36 ▲287.80 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 391.31 ▼274.99 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 346.27 ▲309.82 |
Doctor Agenda /wp-admin/options-general.php?page=wp-doctorAgenda | 3.07 | 303.68 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Doctor Agenda
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲244 | 16.19 ▲0.60 | 14.36 ▲6.74 | 52.76 ▲4.86 |
Dashboard /wp-admin | 2,994 ▲60 | 5.87 ▼0.07 | 137.21 ▼14.89 | 123.04 ▲5.10 |
Posts /wp-admin/edit.php | 2,752 ▲13 | 2.71 ▲0.02 | 75.97 ▲1.64 | 95.12 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,635 ▲44 | 21.44 ▲2.77 | 263.82 ▼126.65 | 110.90 ▲0.31 |
Media Library /wp-admin/upload.php | 1,763 ▼44 | 5.00 ▼0.02 | 160.76 ▲2.88 | 124.43 ▼1.12 |
Doctor Agenda /wp-admin/options-general.php?page=wp-doctorAgenda | 1,118 | 2.09 | 60.30 | 77.63 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate_wp_doctorAgenda' not found or invalid function name
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/doctor-agenda/public/partials/wp-doctor-agenda-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_load_alloptions() in wp-content/plugins/doctor-agenda/admin/partials/wp-doctor-agenda-admin-display.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-doctorAgenda
- > Network (severe)
wp-content/plugins/doctor-agenda/admin/js/wp-doctorAgenda-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-doctorAgenda
- > Network (severe)
wp-content/plugins/doctor-agenda/admin/css/wp-doctorAgenda-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 27 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
doctor-agenda/wp-doctorAgenda.php 85% from 13 tests
The main file in "Doctor Agenda" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("doctor-agenda.php" instead of "wp-doctorAgenda.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected511 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 165 | 566 | 505 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/assets/default/img/logo.png | 5.89KB | 2.88KB | ▼ 51.06% |
assets/banner-772x2502.png | 141.06KB | 99.39KB | ▼ 29.54% |
assets/icon-256x256.png | 16.59KB | 7.55KB | ▼ 54.49% |
assets/icon-128x128.png | 7.36KB | 4.05KB | ▼ 44.98% |