Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.75ms] Passed 4 tests
Analyzing server-side resources used by DPEPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.30 ▼2.21 |
Dashboard /wp-admin | 3.31 ▼0.03 | 52.49 ▼12.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.43 ▼6.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.85 ▼5.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.56 ▲4.52 |
DPEPress /wp-admin/options-general.php?page=dpepress-settings | 3.20 | 32.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DPEPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.25 ▼0.03 | 1.72 ▲0.12 | 39.77 ▼2.76 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.05 | 85.29 ▼7.33 | 39.71 ▼2.85 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▲0.03 | 34.63 ▼5.30 | 35.21 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,529 ▼5 | 23.54 ▲5.38 | 661.83 ▲33.01 | 52.55 ▼14.87 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.21 ▲0.05 | 101.39 ▼0.37 | 44.91 ▼0.40 |
DPEPress /wp-admin/options-general.php?page=dpepress-settings | 862 | 1.99 | 24.73 | 30.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dpepress/dpepress.php:26
- > PHP Fatal error
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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #3 is required in dpepress/assets to your readme.txt
dpepress/dpepress.php Passed 13 tests
The primary PHP file in "DPEPress" version 0.3 is used by WordPress to initiate all plugin functionality
132 characters long description:
Intégrer facilement des DPE (Diagnostics de Performance Energétique) et des GES (Gaz à Effets de Serre) sur votre site Wordpress.
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
Good job! No executable or dangerous file extensions detected732 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 60 | 12 | 579 |
PHP | 1 | 26 | 28 | 153 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/plugin-tinymce/dpe-icon.png | 0.61KB | 0.53KB | ▼ 13.20% |
js/plugin-tinymce/ges-icon.png | 0.79KB | 0.77KB | ▼ 3.08% |
images/DPE-exemple.png | 29.42KB | 9.34KB | ▼ 68.25% |
images/logo-mini.png | 8.29KB | 3.60KB | ▼ 56.62% |