Benchmarks
Plugin footprint 65% from 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.08MB] [CPU: ▼1.47ms] Passed 4 tests
Server-side resources used by QuabAds Official Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.03 ▲2.47 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.84 ▲1.78 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 51.00 ▼3.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.00 ▼6.98 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.61 ▲8.07 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_quabads |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for QuabAds Official Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.18 ▼1.50 | 1.59 ▲0.00 | 39.73 ▼2.16 |
Dashboard /wp-admin | 2,226 ▲38 | 4.85 ▼0.08 | 107.08 ▲4.06 | 42.11 ▲5.89 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.04 ▼0.00 | 39.25 ▲3.91 | 34.42 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,656 ▲137 | 24.44 ▲1.31 | 554.26 ▼81.74 | 60.56 ▲10.36 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.18 ▼0.12 | 95.27 ▼1.61 | 40.56 ▼3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/quabads/uninstall.php+33
unlink(/bin): Permission denied
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quabads/public/quabads-sidebar-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quabads/public/quabads-header-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/quabads/admin/partials/quabads-admin-display.php:15
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Easily integrate & manage your site monetization solutions from WordPress dashboard.) image missing
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
quabads/quabads.php Passed 13 tests
"QuabAds Official Plugin" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
This plugin is designed for those who want to monetize their websites through advertisements.
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
Success! There were no dangerous files found in this plugin1,512 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 175 | 429 | 1,096 |
JavaScript | 2 | 12 | 0 | 234 |
CSS | 4 | 14 | 3 | 182 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 2 | 2.67% |
▷ Public methods | 58 | 77.33% |
▷ Protected methods | 1 | 1.33% |
▷ Private methods | 16 | 21.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon.png | 3.57KB | 1.75KB | ▼ 50.89% |
admin/js/icon.png | 3.57KB | 1.75KB | ▼ 50.89% |
admin/img/ad.png | 3.57KB | 1.75KB | ▼ 50.89% |