Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.22MB] [CPU: ▼49.28ms] Passed 4 tests
Server-side resources used by Annonces Automobile
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.69 | 7.18 ▼36.64 |
Dashboard /wp-admin | 2.79 ▼0.52 | 7.70 ▼43.95 |
Posts /wp-admin/edit.php | 2.79 ▼0.57 | 9.50 ▼37.56 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.10 | 9.08 ▼78.95 |
Media Library /wp-admin/upload.php | 2.79 ▼0.44 | 9.14 ▼23.84 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_annoncesautomobile_recherche_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Annonces Automobile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.34 ▼1.24 | 9.11 ▲6.95 | 42.64 ▼1.38 |
Dashboard /wp-admin | 2,228 ▲52 | 4.92 ▼0.14 | 96.53 ▼22.96 | 35.60 ▼10.34 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.22 ▲0.19 | 39.93 ▲2.87 | 34.92 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.24 ▲0.14 | 669.46 ▼0.84 | 57.35 ▼0.65 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.31 ▲0.15 | 95.43 ▼0.69 | 41.55 ▼1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the annoncesautomobile_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_annoncesautomobile_recherche_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/annonces-automobile/annonces-automobile.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Stable tag: Empty value
- Donate link: Please fix this invalid url: ""
annonces-automobile/annonces-automobile.php Passed 13 tests
"Annonces Automobile" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Affichez les annonces de voiture en provenance de la plateforme Annonces-Automobile.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,452 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 225 | 14 | 1,992 |
JavaScript | 1 | 323 | 194 | 1,819 |
CSS | 2 | 62 | 32 | 641 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mobile-phone.png | 0.39KB | 0.39KB | 0.00% |
images/logo-annonces-automobile-black.png | 3.94KB | 4.11KB | 0.00% |
images/delete-img.png | 0.30KB | 0.31KB | 0.00% |
images/diapocontrols.png | 0.82KB | 0.87KB | 0.00% |
images/overlay.png | 0.95KB | 0.09KB | ▼ 90.11% |