Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲3.33ms] Passed 4 tests
A check of server-side resources used by Cyberpret - Calculettes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 48.99 ▲7.78 |
Dashboard /wp-admin | 3.48 ▲0.18 | 57.62 ▲3.22 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 60.71 ▲8.38 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 96.01 ▼6.08 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 50.87 ▲11.09 |
Calculettes Cyberpret /wp-admin/options-general.php?page=cyberpretCalculettesAdmin | 3.38 | 43.37 |
All Posts /wp-admin/edit.php?post_type=book | 3.45 | 43.97 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Cyberpret - Calculettes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.36 ▲0.07 | 1.84 ▼0.02 | 42.98 ▼1.99 |
Dashboard /wp-admin | 2,229 ▲52 | 5.76 ▲0.09 | 90.10 ▲3.16 | 40.32 ▼1.63 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.30 ▲0.32 | 35.29 ▼1.35 | 33.58 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 21.89 ▼1.08 | 702.24 ▲53.66 | 36.37 ▼16.27 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.44 ▲0.28 | 115.58 ▲10.66 | 46.63 ▲1.30 |
Calculettes Cyberpret /wp-admin/options-general.php?page=cyberpretCalculettesAdmin | 3,525 | 3.46 | 108.43 | 85.65 |
All Posts /wp-admin/edit.php?post_type=book | 1,096 | 2.39 | 34.07 | 30.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyberpret-calculettes/admin/cyberpretShortcodes.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cyberpret-calculettes/cyberpretCalculettes.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=book
- > Network (severe)
wp-content/plugins/cyberpret-calculettes/custom-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Espace d'administration du plugin, choix de la calculette.), #2 (Espace d'administration du plugin, choix de la couleur d'un élément.), #3 (Un exemple de calculette)
- Tags: Please delete some tags, you are using 31 tag instead of maximum 10
cyberpret-calculettes/cyberpretCalculettes.php 77% from 13 tests
This is the main PHP file of "Cyberpret - Calculettes" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cyberpret-calculettes.php" instead of "cyberpretCalculettes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin779 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 197 | 167 | 744 |
CSS | 1 | 9 | 1 | 29 |
JavaScript | 3 | 2 | 15 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 22.77KB | 10.82KB | ▼ 52.46% |
screenshot-1.png | 57.45KB | 29.41KB | ▼ 48.80% |
screenshot-2.png | 27.17KB | 18.23KB | ▼ 32.91% |