Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲5.02MB] [CPU: ▲32.32ms] 75% from 4 tests
An overview of server-side resources used by Download Magnet
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.02MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 72.91 ▲26.81 |
Dashboard /wp-admin | 8.90 ▲5.59 | 77.01 ▲30.99 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 82.97 ▲34.73 |
Add New Post /wp-admin/post-new.php | 9.43 ▲3.54 | 135.63 ▲37.83 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 69.35 ▲36.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 58.82 |
Server storage [IO: ▲3.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 193 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_psdm_downloads |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
db_upgraded |
widget_recent-comments |
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Download Magnet
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲211 | 13.91 ▼0.76 | 7.80 ▲5.58 | 28.08 ▼11.84 |
Dashboard /wp-admin | 2,244 ▲53 | 5.86 ▲0.99 | 107.47 ▲6.38 | 45.73 ▲4.22 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.12 ▲0.09 | 39.97 ▲0.16 | 37.86 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 23.09 ▼0.05 | 632.60 ▲0.46 | 50.73 ▼3.94 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.24 ▲0.03 | 102.96 ▲9.51 | 45.21 ▲4.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,088 | 1.81 | 27.50 | 29.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/download-magnet/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 1 table in the database
- wp_psdm_downloads
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_debug_mode
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- fs_accounts
- fs_active_plugins
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/download-magnet/downloadmagnet.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-magnet/includes/class-psdm-list-table.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/download-magnet/includes/class-psdm-list-table.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/download-magnet/includes/class-psdm-list-table.php on line 13
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
download-magnet/downloadmagnet.php 92% from 13 tests
The main PHP file in "Download Magnet" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("download-magnet.php" instead of "downloadmagnet.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected34,876 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 8,107 | 17,373 | 34,074 |
JavaScript | 7 | 55 | 64 | 334 |
CSS | 15 | 45 | 2 | 253 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 92.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,290 | |
▷ Static methods | 197 | 15.27% |
▷ Public methods | 900 | 69.77% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 373 | 28.91% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/psdm_addons.png | 43.20KB | 15.38KB | ▼ 64.39% |
includes/images/notification.png | 3.13KB | 1.91KB | ▼ 38.90% |
includes/images/email.png | 3.44KB | 2.03KB | ▼ 40.89% |
includes/images/downloadmagnet100.png | 2.60KB | 1.85KB | ▼ 29.03% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |