Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.06ms] Passed 4 tests
An overview of server-side resources used by Eco Agenda
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.96 ▼2.94 |
Dashboard /wp-admin | 3.39 ▲0.04 | 50.67 ▼8.48 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.77 ▲4.60 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.76 ▼14.54 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.28 ▲1.73 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_eco_agenda |
wp_eco_param |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_eco_mini_agenda |
widget_recent-comments |
Browser metrics Passed 4 tests
Eco Agenda: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.89 ▼0.46 | 7.99 ▲6.49 | 44.90 ▲1.30 |
Dashboard /wp-admin | 2,207 ▲36 | 5.65 ▲0.12 | 90.67 ▲1.78 | 42.63 ▼0.14 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.00 ▼0.02 | 33.24 ▼3.30 | 36.47 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.09 ▼0.00 | 656.58 ▼21.92 | 67.30 ▲14.50 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.23 ▲0.04 | 94.64 ▼0.83 | 43.00 ▼0.12 |
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
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_eco_mini_agenda
- widget_recent-comments
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)
Even though everything seems fine, this is not 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eco-agenda/eco_mini_agenda.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eco-agenda/eco-agenda.php:15
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #4 (Example of positioning the plugin on the sidebar and only on the home page thanks to the Widget logic plugin)
eco-agenda/eco-agenda.php Passed 13 tests
The principal PHP file in "Eco Agenda" v. 1.0.6 is loaded by WordPress automatically on each request
133 characters long description:
Permet l'affichage d'un mini agenda contenant des évènements. Mises à jour automatique chaque jour avec le site www.eco-sorties.fr
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected647 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 71 | 58 | 399 |
HTML | 1 | 9 | 0 | 125 |
CSS | 1 | 25 | 8 | 123 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 1.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/map.png | 0.77KB | 0.77KB | 0.00% |
includes/img/date_min.png | 2.34KB | 1.44KB | ▼ 38.38% |
includes/img/date.png | 0.61KB | 0.61KB | ▼ 0.96% |
includes/img/activity.png | 0.45KB | 0.46KB | 0.00% |
includes/img/close.png | 4.22KB | 1.46KB | ▼ 65.46% |