Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▼27.64ms] Passed 4 tests
This is a short check of server-side resources used by TheEPI
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 45.74 ▲3.47 |
Dashboard /wp-admin | 4.50 ▲1.16 | 36.68 ▼28.18 |
Posts /wp-admin/edit.php | 4.58 ▲1.22 | 39.57 ▼11.91 |
Add New Post /wp-admin/post-new.php | 4.57 ▼1.31 | 38.15 ▼71.07 |
Media Library /wp-admin/upload.php | 4.58 ▲1.35 | 39.43 ▲0.61 |
Go to WP Admin /wp-admin/admin.php?page=go-to-wp-admin | 4.58 | 35.82 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 4.58 | 37.70 |
Server storage [IO: ▲4.78MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 523 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
plugin_permalinks_flushed |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by TheEPI
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,599 ▼162 | 13.80 ▼0.92 | 11.90 ▲10.26 | 39.51 ▲0.85 |
Dashboard /wp-admin | 1,890 ▼287 | 5.50 ▼0.17 | 80.65 ▼15.81 | 41.95 ▼3.04 |
Posts /wp-admin/edit.php | 2,241 ▲138 | 2.30 ▲0.29 | 38.61 ▼2.05 | 37.60 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 21.46 ▼1.39 | 721.08 ▲18.97 | 36.73 ▼18.83 |
Media Library /wp-admin/upload.php | 1,587 ▲190 | 4.37 ▲0.10 | 98.74 ▼16.87 | 41.58 ▼8.26 |
Go to WP Admin /wp-admin/admin.php?page=go-to-wp-admin | 765 | 1.83 | 25.79 | 22.43 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 765 | 1.81 | 26.04 | 16.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/theepi/core/action/class-theepi-core-action.php+156
Creating default object from empty value
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- plugin_permalinks_flushed
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=minimize-menu
- > Warning in wp-content/plugins/theepi/core/action/class-theepi-core-action.php+156
Creating default object from empty value
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=minimize-menu
- > Notice in wp-content/plugins/theepi/core/external/eo-framework/modules/wpeo-custom-menu/view/content.view.php+32
Uninitialized string offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=minimize-menu
- > Warning in wp-content/plugins/theepi/core/external/eo-framework/modules/wpeo-custom-menu/view/content.view.php+35
call_user_func() expects parameter 1 to be a valid callback, function '' not found or invalid function name
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function theepi\\plugin_dir_path() in wp-content/plugins/theepi/theepi.php:30
- > PHP Fatal error
Uncaught Error: Class 'Audit_Class' not found in wp-content/plugins/theepi/modules/audit/view/index.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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:
- Screenshots: Screenshot #1 (Dashboard) image required
theepi/theepi.php Passed 13 tests
The main PHP script in "TheEPI" version 0.7.0 is automatically included on every request by WordPress
72 characters long description:
TheEPI is the open source software for the daily management of your PPE.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin48,704 lines of code in 405 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 3,737 | 7,943 | 13,805 |
SVG | 3 | 0 | 0 | 8,611 |
JavaScript | 37 | 1,407 | 3,875 | 8,264 |
Sass | 156 | 516 | 172 | 7,988 |
CSS | 16 | 1,087 | 389 | 7,256 |
HTML | 19 | 281 | 36 | 1,922 |
PO File | 3 | 220 | 330 | 432 |
JSON | 17 | 1 | 0 | 249 |
Markdown | 4 | 102 | 0 | 177 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 100 | |
▷ Abstract classes | 1 | 1.00% |
▷ Concrete classes | 99 | 99.00% |
▷ Final classes | 0 | 0.00% |
Methods | 548 | |
▷ Static methods | 77 | 14.05% |
▷ Public methods | 499 | 91.06% |
▷ Protected methods | 32 | 5.84% |
▷ Private methods | 17 | 3.10% |
Functions | 22 | |
▷ Named functions | 9 | 40.91% |
▷ Anonymous functions | 13 | 59.09% |
Constants | 98 | |
▷ Global constants | 97 | 98.98% |
▷ Class constants | 1 | 1.02% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/images/icon-256x256_blanc.png | 9.68KB | 3.71KB | ▼ 61.71% |
core/assets/images/icon-256x256.png | 10.58KB | 3.91KB | ▼ 63.03% |