Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_settings.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_settings has a deprecated constructor
Server metrics [RAM: ▼1.64MB] [CPU: ▼48.41ms] Passed 4 tests
This is a short check of server-side resources used by wpinvoice
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 5.33 ▼35.65 |
Dashboard /wp-admin | 2.36 ▼0.94 | 6.22 ▼39.90 |
Posts /wp-admin/edit.php | 2.37 ▼0.98 | 6.22 ▼39.32 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.52 | 6.92 ▼78.77 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 44.08 ▲10.72 |
Web-service /wp-admin/admin.php?page=eoinvoice_menu_service | 2.36 | 7.27 |
Nouvelle facture /wp-admin/admin.php?page=eoinvoice_menu_entry | 2.36 | 6.84 |
Nouveau magasin /wp-admin/admin.php?page=eoinvoice_menu_store_creation | 2.36 | 6.36 |
Tableau de bord /wp-admin/admin.php?page=eoinvoice_menu_stats | 2.36 | 7.82 |
Consultation /wp-admin/admin.php?page=eoinvoice_menu | 2.36 | 7.67 |
Réglages magasin /wp-admin/admin.php?page=eoinvoice_menu_settings | 2.36 | 8.02 |
Server storage [IO: ▲1.31MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 100 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_eoinvoice__store_list |
wp_eoinvoice__user_store |
wp_eoinvoice__ged_documents |
wp_eoinvoice__adress |
wp_eoinvoice__user_adress |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
eoinvoice_db_version |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
wpinvoice: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲200 | 14.07 ▼0.52 | 5.12 ▲3.53 | 36.11 ▼4.05 |
Dashboard /wp-admin | 2,242 ▲51 | 4.89 ▲0.05 | 97.49 ▼6.41 | 65.84 ▲24.83 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.03 ▲0.01 | 38.27 ▲0.38 | 34.51 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,707 ▲174 | 20.42 ▼2.39 | 666.99 ▲9.69 | 49.09 ▼4.45 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.23 ▼0.05 | 111.52 ▼2.34 | 73.24 ▲24.06 |
Web-service /wp-admin/admin.php?page=eoinvoice_menu_service | 837 | 2.03 | 26.31 | 25.05 |
Nouvelle facture /wp-admin/admin.php?page=eoinvoice_menu_entry | 819 | 2.03 | 24.48 | 23.88 |
Nouveau magasin /wp-admin/admin.php?page=eoinvoice_menu_store_creation | 854 | 2.07 | 23.34 | 25.19 |
Tableau de bord /wp-admin/admin.php?page=eoinvoice_menu_stats | 822 | 2.03 | 25.55 | 26.86 |
Consultation /wp-admin/admin.php?page=eoinvoice_menu | 822 | 2.06 | 23.66 | 25.43 |
Réglages magasin /wp-admin/admin.php?page=eoinvoice_menu_settings | 819 | 2.08 | 26.49 | 25.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_settings.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_settings has a deprecated constructor
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_eoinvoice__ged_documents
- wp_eoinvoice__store_list
- wp_eoinvoice__user_adress
- wp_eoinvoice__user_store
- wp_eoinvoice__adress
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- eoinvoice_db_version
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_settings.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_settings has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_front.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_front has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_entry.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_entry has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_customer.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_customer has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_store_creation.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_store_creation has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_service.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_service has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_init.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_init has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_stats.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_stats has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_invoice_table.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_invoice_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_tools.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_tools has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_export_odt.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_export_odt has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_export_pdf.class.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_export_pdf has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Notice in wp-content/plugins/wpinvoice/include/lib/eoinvoice_export_pdf.class.php+2
Constant EURO already defined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/pdf/fpdf.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_export_html.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_export_html has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_store_table.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_store_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_adress_table.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_adress_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_user_adress_table.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_user_adress_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_store_list_table.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_store_list_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_user_store_table.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_user_store_table has a deprecated constructor
- 156 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Warning in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_user_adress_table.class.php+14
Use of undefined constant EOI_TABLE_USER_ADRESS - assumed 'EOI_TABLE_USER_ADRESS' (this will throw an Error in a future version of PHP)
- 180 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Warning in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_user_store_table.class.php+21
Use of undefined constant EOI_TABLE_USER_STORE - assumed 'EOI_TABLE_USER_STORE' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/odt/zip/pclzip/pclzip.lib.php+190
Methods with the same name as their class will not be constructors in a future version of PHP; PclZip has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Notice in wp-content/plugins/wpinvoice/include/lib/odt/zip/pclzip/pclzip.lib.php+1972
A non well formed numeric value encountered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_invoice_row_table.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_invoice_row_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/pdf/fpdf.php+1073
Function get_magic_quotes_runtime() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/db/eoinvoice_ged_documents_table.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_ged_documents_table has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Deprecated in wp-content/plugins/wpinvoice/include/lib/eoinvoice_view_save.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; eoinvoice_view_save has a deprecated constructor
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Notice in wp-content/plugins/wpinvoice/include/config/configNomTables.php+15
Undefined variable: store_number
- 30 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > 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.)
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > Notice in wp-content/plugins/wpinvoice/include/lib/eoinvoice_init.class.php+127
Undefined variable: empty_store
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_settings
- > User deprecated in wp-includes/functions.php+5737
Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
- > GET request to /wp-admin/admin.php?page=eoinvoice_menu_store_creation
- > Notice in wp-content/plugins/wpinvoice/include/lib/eoinvoice_store_creation.class.php+39
Undefined index: eoinvoice_hidden
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
Please fix the following
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpinvoice/eoinvoice.php on line 36
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 34
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 30
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 36
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 32
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpinvoice/eoinvoice.php on line 35
- > PHP Notice
Undefined variable: store_number in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 24
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpinvoice/include/config/configNomTables.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'EOINVOICE_HOME_DIRinclude/lib/pdf/fpdf.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpinvoice/include/lib/eoinvoice_export_pdf.class.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Interface de consultation des factures pour un magasin) image missing
wpinvoice/eoinvoice.php 92% from 13 tests
The primary PHP file in "wpinvoice" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpinvoice.php" instead of "eoinvoice.php")
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
No dangerous file extensions were detected9,478 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,784 | 4,135 | 9,031 |
HTML | 2 | 60 | 0 | 195 |
CSS | 2 | 11 | 0 | 164 |
XML | 2 | 1 | 0 | 55 |
JavaScript | 1 | 3 | 6 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 42.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 551.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 338 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 333 | 98.52% |
▷ Protected methods | 1 | 0.30% |
▷ Private methods | 4 | 1.18% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 66 | |
▷ Global constants | 64 | 96.97% |
▷ Class constants | 2 | 3.03% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.61MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
manuel/img/storesettings2.png | 30.74KB | 10.96KB | ▼ 64.34% |
manuel/etape2.png | 8.42KB | 3.71KB | ▼ 55.89% |
manuel/img/exporthtml.png | 50.48KB | 20.87KB | ▼ 58.66% |
manuel/img/newstore.png | 12.24KB | 5.12KB | ▼ 58.14% |
manuel/img/menuclient.png | 5.94KB | 3.02KB | ▼ 49.09% |