Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼8.79ms] Passed 4 tests
This is a short check of server-side resources used by Clicface Trombi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.60 ▲0.09 |
Dashboard /wp-admin | 3.57 ▲0.22 | 52.50 ▼13.71 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 47.40 ▼4.65 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 85.40 ▼16.87 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.56 ▲0.48 |
Settings /wp-admin/edit.php?post_type=collaborateur&page=clicface-trombi-settings | 3.49 | 37.47 |
Worksites /wp-admin/edit-tags.php?taxonomy=collaborateur_worksite&post_type=collaborateur | 3.61 | 38.13 |
Add New /wp-admin/post-new.php?post_type=collaborateur | 3.56 | 60.97 |
Employees /wp-admin/edit.php?post_type=collaborateur | 3.56 | 43.52 |
Divisions /wp-admin/edit-tags.php?taxonomy=collaborateur_service&post_type=collaborateur | 3.61 | 36.65 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
clicface_trombi_settings |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Clicface Trombi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.36 ▲0.02 | 1.72 ▼0.17 | 43.00 ▼1.22 |
Dashboard /wp-admin | 2,234 ▲54 | 5.49 ▼0.09 | 97.26 ▲1.45 | 43.60 ▲4.62 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.00 ▲0.01 | 35.26 ▼10.20 | 35.20 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.12 ▲0.13 | 619.09 ▼42.46 | 49.23 ▼4.62 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.31 ▲0.16 | 105.45 ▼9.33 | 46.63 ▼1.67 |
Settings /wp-admin/edit.php?post_type=collaborateur&page=clicface-trombi-settings | 1,114 | 3.17 | 39.25 | 24.74 |
Worksites /wp-admin/edit-tags.php?taxonomy=collaborateur_worksite&post_type=collaborateur | 1,312 | 2.12 | 27.83 | 29.40 |
Add New /wp-admin/post-new.php?post_type=collaborateur | 2,261 | 3.63 | 69.93 | 34.29 |
Employees /wp-admin/edit.php?post_type=collaborateur | 1,296 | 3.35 | 42.08 | 27.13 |
Divisions /wp-admin/edit-tags.php?taxonomy=collaborateur_service&post_type=collaborateur | 1,312 | 2.12 | 27.60 | 31.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- clicface_trombi_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=collaborateur
- > Notice in wp-content/plugins/clicface-trombi/clicface-trombi.php+535
Undefined index: clicface-trombi-images-type-collaborateur-photo
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 take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/clicface-trombi/clicface-trombi.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clicface-trombi/clicface-trombi.php:13
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/clicface-trombi/clicface-trombi.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clicface-trombi/templates/single-collaborateur.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clicface-trombi/clicface-trombi.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clicface-trombi/includes/settings-initialization.php:2
- > 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 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 need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
clicface-trombi/clicface-trombi.php Passed 13 tests
"Clicface Trombi" version 2.08's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
A great plugin for WordPress that creates a directory of all your employees.
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
No dangerous file extensions were detected2,012 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 30 | 1,224 |
PO File | 1 | 210 | 492 | 468 |
CSS | 4 | 44 | 1 | 247 |
JavaScript | 2 | 25 | 9 | 73 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 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 |
img/youtube.png | 2.94KB | 3.05KB | 0.00% |
css/sprite.png | 11.62KB | 4.15KB | ▼ 64.30% |
img/clicface-trombi-images-placeholder.png | 1.06KB | 0.17KB | ▼ 84.48% |
img/facebook.png | 2.52KB | 2.63KB | 0.00% |
img/twitter.png | 2.78KB | 2.89KB | 0.00% |