Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼138.06ms] Passed 4 tests
This is a short check of server-side resources used by VW Notes & Files Downloader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.10 | 44.24 ▲8.03 |
Dashboard /wp-admin | 3.16 ▲0.10 | 46.91 ▲1.51 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 44.84 ▲9.73 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 85.86 ▼564.85 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 33.86 ▲3.09 |
Notes & Files /wp-admin/edit.php?post_type=vnafdnotes | 3.14 | 37.92 |
Add New /wp-admin/post-new.php?post_type=vnafdnotes | 3.11 | 41.99 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for VW Notes & Files Downloader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,833 ▲237 | 15.93 ▲0.44 | 11.89 ▲2.18 | 58.33 ▲6.65 |
Dashboard /wp-admin | 3,091 ▲160 | 6.19 ▲0.24 | 136.31 ▼7.81 | 55.85 ▼57.21 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.70 ▲0.00 | 64.98 ▼0.27 | 44.32 ▼44.56 |
Add New Post /wp-admin/post-new.php | 1,725 ▲225 | 18.36 ▼0.26 | 348.50 ▼26.38 | 96.92 ▼12.63 |
Media Library /wp-admin/upload.php | 1,871 ▲61 | 5.02 ▼0.01 | 146.83 ▲3.36 | 108.35 ▼10.20 |
Notes & Files /wp-admin/edit.php?post_type=vnafdnotes | 1,470 | 2.62 | 65.64 | 44.07 |
Add New /wp-admin/post-new.php?post_type=vnafdnotes | 2,010 | 3.27 | 117.35 | 49.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=vnafdnotes
- > Warning in wp-content/plugins/vw-notes-files-downloader/notes.php+65
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vw-notes-files-downloader/dashboard.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vw-notes-files-downloader/notes.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vw-notes-files-downloader/add-tabs.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vw-notes-files-downloader/downloader.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: download notes, assigment downloader, student notes downloader, staff files downloader, notes...
vw-notes-files-downloader/index.php 85% from 13 tests
"VW Notes & Files Downloader" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vw-notes-files-downloader.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin595 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 97 | 121 | 356 |
CSS | 2 | 5 | 3 | 214 |
JavaScript | 1 | 16 | 11 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notes-display.png | 11.74KB | 4.85KB | ▼ 58.70% |
images/shortcode.png | 45.87KB | 17.13KB | ▼ 62.66% |
images/Download-Files.png | 60.02KB | 18.94KB | ▼ 68.45% |
images/notes-files.png | 38.41KB | 14.80KB | ▼ 61.47% |
images/final-logo.png | 9.72KB | 3.95KB | ▼ 59.33% |