Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.81MB] [CPU: ▼37.28ms] Passed 4 tests
Analyzing server-side resources used by crem_notices
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.20 ▼0.30 | 15.95 ▼25.41 |
Dashboard /wp-admin | 3.25 ▼0.10 | 19.78 ▼28.32 |
Posts /wp-admin/edit.php | 3.25 ▼0.15 | 23.23 ▼27.89 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.68 | 22.53 ▼67.51 |
Media Library /wp-admin/upload.php | 3.25 ▼0.02 | 21.07 ▼14.67 |
Auteurs /wp-admin/edit.php?post_type=auteur | 3.25 | 21.05 |
Add New /wp-admin/post-new.php?post_type=auteur | 3.25 | 21.53 |
Familles /wp-admin/edit-tags.php?taxonomy=famille&post_type=notice | 3.25 | 21.63 |
Add New /wp-admin/post-new.php?post_type=notice | 3.25 | 22.00 |
Notices /wp-admin/edit.php?post_type=notice | 3.25 | 22.60 |
Mots-clés /wp-admin/edit-tags.php?taxonomy=mot-cle&post_type=notice | 3.25 | 21.88 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for crem_notices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲239 | 14.45 ▲0.07 | 1.99 ▲0.20 | 38.99 ▼5.08 |
Dashboard /wp-admin | 2,403 ▲226 | 6.19 ▲0.60 | 120.42 ▲29.49 | 42.89 ▲2.55 |
Posts /wp-admin/edit.php | 2,321 ▲218 | 3.27 ▲1.29 | 53.02 ▲10.72 | 32.10 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,621 ▲86 | 18.20 ▼0.21 | 623.69 ▼38.03 | 46.55 ▼9.76 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.14 ▼0.00 | 87.32 ▼19.03 | 43.94 ▼1.71 |
Auteurs /wp-admin/edit.php?post_type=auteur | 1,292 | 3.32 | 44.69 | 29.56 |
Add New /wp-admin/post-new.php?post_type=auteur | 2,277 | 7.56 | 156.95 | 76.36 |
Familles /wp-admin/edit-tags.php?taxonomy=famille&post_type=notice | 1,499 | 3.14 | 41.16 | 29.97 |
Add New /wp-admin/post-new.php?post_type=notice | 2,866 | 8.91 | 226.88 | 140.83 |
Notices /wp-admin/edit.php?post_type=notice | 1,314 | 3.39 | 42.00 | 28.94 |
Mots-clés /wp-admin/edit-tags.php?taxonomy=mot-cle&post_type=notice | 1,471 | 3.08 | 41.91 | 29.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/crem-notices/meta-box/init.php+746
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 16 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=mot-cle&post_type=notice
- > Warning in wp-content/plugins/crem-notices/meta-box/init.php+746
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crem-notices/crem_notices_metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crem-notices/crem_notices_auteur_metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/crem-notices/templates/auteur-single-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/crem-notices/templates/notice-single-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/crem-notices/templates/notice-archive-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/crem-notices/meta-box/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crem-notices/crem_notices_custom-post.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crem-notices/crem_notices_custom-post.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/crem-notices/templates/notice-auteur-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/crem-notices/templates/notice-alpha-template.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=notice
- > Network (severe)
wp-content/plugins/crem-notices/meta-box/js/cmb.min.js?ver=1.2.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== crem-notices ===
)
crem-notices/crem_notices.php 92% from 13 tests
This is the main PHP file of "crem_notices" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crem-notices.php" instead of "crem_notices.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
There were no executable files found in this plugin4,490 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 602 | 1,107 | 2,320 |
JavaScript | 4 | 306 | 374 | 2,169 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 34 | 25.56% |
▷ Public methods | 131 | 98.50% |
▷ Protected methods | 2 | 1.50% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin