Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼20.55ms] Passed 4 tests
Analyzing server-side resources used by AdQuire
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 23.62 ▼17.40 |
Dashboard /wp-admin | 3.12 ▼0.19 | 31.45 ▼17.95 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 34.51 ▼18.12 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 67.88 ▼28.71 |
Media Library /wp-admin/upload.php | 3.18 ▼0.04 | 32.07 ▼3.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by AdQuire
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.32 ▼1.05 | 3.79 ▲1.88 | 40.46 ▼5.01 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▼0.01 | 98.29 ▼12.97 | 82.04 ▲41.08 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.04 ▲0.01 | 34.82 ▼6.58 | 34.14 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,694 ▲161 | 24.91 ▲1.70 | 690.31 ▲0.04 | 46.56 ▼6.99 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.44 ▲0.16 | 94.25 ▼11.61 | 82.64 ▲38.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adquire/adquire.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adquire/includes/scripts.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adquire/includes/embed-adquire.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adquire/includes/admin-page.php:618
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== adquire ===
) - Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
adquire/adquire.php Passed 13 tests
The principal PHP file in "AdQuire" v. 1.4 is loaded by WordPress automatically on each request
129 characters long description:
Allows WordPress webpage owners to set up AdQuire easily. To get started: 1) Click the 'Activate' link; 2) Click the AdQuire tab.
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
There were no executable files found in this plugin1,069 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 40 | 77 | 791 |
JavaScript | 4 | 17 | 40 | 159 |
CSS | 2 | 26 | 0 | 108 |
HTML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/adq-logo.png | 1.19KB | 0.95KB | ▼ 20.66% |
includes/images/adquire.png | 0.82KB | 0.93KB | 0.00% |