Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.31MB] [CPU: ▼308.75ms] Passed 4 tests
This is a short check of server-side resources used by AdQuire
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.76 ▲2.11 |
Dashboard /wp-admin | 3.30 ▼0.10 | 21.79 ▼12.18 |
Posts /wp-admin/edit.php | 3.36 ▼0.28 | 24.59 ▼13.40 |
Add New Post /wp-admin/post-new.php | 6.10 ▼0.87 | 78.07 ▼1,201.99 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 19.46 ▼7.42 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for AdQuire
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲44 | 16.28 ▲0.24 | 5.79 ▼0.26 | 2.47 ▲0.25 |
Dashboard /wp-admin | 2,916 ▲55 | 6.07 ▼0.18 | 122.47 ▼14.68 | 177.15 ▲19.53 |
Posts /wp-admin/edit.php | 2,712 ▲40 | 3.26 ▲0.02 | 63.77 ▼1.36 | 141.33 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,678 ▼12 | 15.48 ▼6.11 | 422.57 ▼22.02 | 170.90 ▲13.81 |
Media Library /wp-admin/upload.php | 1,720 ▲22 | 5.58 ▲0.04 | 124.67 ▼12.53 | 207.72 ▲21.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > 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/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
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adquire/includes/scripts.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== adquire ===
) - Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
adquire/adquire.php Passed 13 tests
Analyzing the main PHP file in "AdQuire" version 1.4
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 | 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 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
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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% |