Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.70ms] Passed 4 tests
A check of server-side resources used by Ausmed Document CPD Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.64 ▼2.86 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.86 ▼0.87 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.33 ▼8.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.18 ▼10.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.95 ▲2.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ausmed Document CPD Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.61 ▼0.77 | 8.43 ▲6.65 | 41.66 ▼4.44 |
Dashboard /wp-admin | 2,213 ▲28 | 5.90 ▲0.05 | 99.94 ▼8.42 | 40.27 ▼1.76 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.00 | 37.51 ▼3.64 | 34.34 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,518 ▲4 | 23.22 ▲5.68 | 668.68 ▼38.04 | 55.46 ▲3.12 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▼0.00 | 102.61 ▼3.47 | 48.65 ▲1.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ausmed-document-button/admin/partials/ausmed-document-button-admin-display.php
- > /wp-content/plugins/ausmed-document-button/public/partials/ausmed-document-button-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("www.ausmed.com/button")
ausmed-document-button/ausmed-document-button.php Passed 13 tests
The main PHP script in "Ausmed Document CPD Button" version 2.2.0 is automatically included on every request by WordPress
126 characters long description:
This is a WordPress plugin from Ausmed to enable you to document CPD activities from your content by clicking a single button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected235 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 120 | 531 | 173 |
CSS | 2 | 1 | 10 | 34 |
JavaScript | 2 | 4 | 27 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected