Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-addvert/wp-addvert.php+176
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.59ms] Passed 4 tests
Analyzing server-side resources used by WP-Addvert
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.51 ▼7.00 |
Dashboard /wp-admin | 3.31 ▼0.04 | 55.42 ▼14.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 57.84 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.96 ▼11.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.13 ▲4.73 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
addvert_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Addvert
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.03 | 1.75 ▲0.09 | 45.14 ▼4.52 |
Dashboard /wp-admin | 2,198 ▲24 | 5.64 ▼0.11 | 93.02 ▼7.40 | 44.38 ▼2.45 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.01 | 39.94 ▲3.93 | 41.09 ▲4.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.65 ▲0.42 | 660.43 ▲7.59 | 68.61 ▲12.87 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.19 ▼0.05 | 98.11 ▲2.21 | 43.23 ▲1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- addvert_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-addvert/form.php:13
- > PHP Notice
Undefined variable: url in wp-content/plugins/wp-addvert/form.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-addvert/wp-addvert.php:22
- > PHP Notice
Undefined variable: updated in wp-content/plugins/wp-addvert/form.php on line 1
- > PHP Notice
Undefined variable: url in wp-content/plugins/wp-addvert/form.php on line 6
- > PHP Notice
Undefined variable: url in wp-content/plugins/wp-addvert/form.php on line 10
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Screenshots: Add an image for screenshot #1 (WP-Addvert settings page)
wp-addvert/wp-addvert.php Passed 13 tests
Analyzing the main PHP file in "WP-Addvert" version 1.8
97 characters long description:
Aggiunge i meta tag necessari al funzionamento di Addvert e permette il tracciamento dell'ordine.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected279 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 47 | 35 | 279 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 1 | 4.76% |
▷ Private methods | 5 | 23.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.15MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 21.46KB | 3.62KB | ▼ 83.12% |
assets/icon.png | 16.07KB | 0.72KB | ▼ 95.50% |
assets/button_small.png | 16.92KB | 1.80KB | ▼ 89.38% |
assets/button_standard.png | 18.67KB | 2.67KB | ▼ 85.69% |
assets/icon-256x256.png | 41.73KB | 11.78KB | ▼ 71.77% |