Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/auto-post-download/APD_Settings.php+20
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.81MB] [CPU: ▼187.21ms] Passed 4 tests
This is a short check of server-side resources used by Auto Post Download
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 36.88 ▲1.45 |
Dashboard /wp-admin | 1.84 ▼1.22 | 9.49 ▼34.72 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 7.42 ▼37.38 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 5.74 ▼645.46 |
Media Library /wp-admin/upload.php | 1.84 ▼1.17 | 8.10 ▼31.26 |
Auto Post Download /wp-admin/options-general.php?page=apd_admin | 1.84 | 7.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Auto Post Download
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.82 ▲0.25 | 8.26 ▲0.20 | 52.11 ▼1.70 |
Dashboard /wp-admin | 2,978 ▲47 | 5.91 ▼0.04 | 139.39 ▼9.61 | 111.92 ▼0.98 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.01 | 67.34 ▲1.34 | 88.57 ▼8.51 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.78 ▲0.33 | 371.72 ▼13.39 | 114.06 ▼4.37 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.11 ▲0.09 | 164.26 ▲11.50 | 151.06 ▲23.50 |
Auto Post Download /wp-admin/options-general.php?page=apd_admin | 1,155 | 2.22 | 64.09 | 90.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/auto-post-download/APD_Settings.php+20
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=apd_admin
- > Notice in wp-content/plugins/auto-post-download/APD_Settings.php+189
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/auto-post-download/auto-post-download.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: presspack, pack, post, mediapack, fields...
auto-post-download/auto-post-download.php Passed 13 tests
"Auto Post Download" version 1.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Plugin that automatically creates attachment with post content and its image
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 detected330 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 73 | 35 | 330 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 27.27% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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 images were found in this plugin