Benchmarks
Plugin footprint 5% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method chapitres_database::chapitres_DB_install() should not be called statically
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.79ms] Passed 4 tests
Server-side resources used by Chapters
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.86 ▼0.28 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.24 ▼5.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.27 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.12 ▼14.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.49 ▲2.33 |
Chapters /wp-admin/options-general.php?page=chapitres | 3.21 | 33.42 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_chapitres |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
chapitres_db_version |
category_children |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Chapters
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.18 ▼1.24 | 4.30 ▲2.36 | 40.31 ▼3.51 |
Dashboard /wp-admin | 2,207 ▲18 | 5.84 ▼0.06 | 96.77 ▼9.31 | 36.75 ▼8.33 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.01 | 40.10 ▲0.12 | 34.29 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.72 ▲6.14 | 664.67 ▲65.79 | 57.12 ▲7.78 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.00 | 98.56 ▼0.45 | 41.78 ▼1.40 |
Chapters /wp-admin/options-general.php?page=chapitres | 7,125 | 2.34 | 46.36 | 179.27 |
Uninstaller [IO: ▲0.39MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie tables detected upon uninstall: 1 table The uninstall procedure has failed, leaving 8 options in the database
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method chapitres_database::chapitres_DB_desinstall() should not be called statically
- This plugin has failed uninstalling correctly, leaving 57 files (0.39MB) in the plugin directory
- (new file) classes/chapitres_customize.php
- (new file) images/icone_chapitres_grand.png
- (new file) classes/chapitres_menu_admin.php
- (new file) chapitres.php
- (new file) images/icone_chapitres_petit.png
- (new file) images/icone_livres_grand.png
- (new file) classes/wp_walker_nav_menu_checklist.php
- (new file) images/fleche_bas.png
- (new file) classes/chapitres_database.php
- (new file) classes/chapitres_display.php
- ...
- wp_chapitres
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_recent-posts
- theysaidso_admin_options
- category_children
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=chapitres
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=chapitres
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Notice in wp-content/plugins/chapters/classes/chapitres_display.php+115
Undefined variable: tab_contenus
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Notice in wp-content/plugins/chapters/classes/chapitres_display.php+149
Undefined variable: fin_formulaire
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Notice in wp-content/plugins/chapters/classes/chapitres_display.php+460
Undefined variable: contenu_metabox
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/chapters/classes/wp_walker_nav_menu_checklist.php:3
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/chapters/classes/wp_walker_nav_menu_checklist.php:3
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/chapters/classes/wp_walker_nav_menu_checklist.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Network (severe)
http://fonts.googleapis.com/css?family=Droid+Sans+Thai:bold,normal - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Network (severe)
http://fonts.googleapis.com/css?family=Droid+Serif+Thai:bold,normal - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Network (severe)
http://fonts.googleapis.com/css?family=Miama - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Network (severe)
http://fonts.googleapis.com/css?family=Neuton+Cursive - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Network (severe)
http://fonts.googleapis.com/css?family=Pecita - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/chapters/javascript/jquery-chapitres.js?ver=6.3.1:42:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/chapters/javascript/chapitres_ajax.js?ver=6.3.1:39:42)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=chapitres
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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 to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
chapters/chapitres.php 77% from 13 tests
"Chapters" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 588 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chapters.php" instead of "chapitres.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,182 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 202 | 422 | 1,875 |
JavaScript | 3 | 106 | 201 | 994 |
CSS | 7 | 27 | 100 | 885 |
PO File | 2 | 206 | 232 | 428 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 38.80 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 84.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 15.28% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
34 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icone_livres_petit.png | 1.76KB | 0.97KB | ▼ 44.93% |
images/liststyletypes/lower-greek.png | 1.22KB | 0.35KB | ▼ 71.09% |
images/liststyletypes/lower-alpha.png | 1.15KB | 0.27KB | ▼ 76.93% |
images/liststyletypes/armenian.png | 1.16KB | 0.35KB | ▼ 69.43% |
images/liststyletypes/upper-roman.png | 2.87KB | 0.23KB | ▼ 92.06% |