Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/1-decembrie-1918/1-decembrie-1918.php+13
Use of undefined constant UNU_DEC_1918_TEXTDOMAIN - assumed 'UNU_DEC_1918_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.92MB] [CPU: ▼55.88ms] Passed 4 tests
Analyzing server-side resources used by 1 Decembrie 1918
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 7.59 ▼32.27 |
Dashboard /wp-admin | 2.09 ▼1.25 | 5.48 ▼54.65 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.44 ▼43.73 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.09 ▼92.88 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 5.42 ▼30.46 |
1 Decembrie 1918 /wp-admin/options-general.php?page=1-decembrie-1918/1-decembrie-1918.php | 2.10 | 5.66 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options |
---|
unudec1918_url |
db_upgraded |
widget_recent-posts |
unudec1918_efect |
unudec1918_title_text |
widget_recent-comments |
unudec1918_text |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 1 Decembrie 1918
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.63 ▼0.87 | 1.58 ▼0.09 | 37.81 ▼3.64 |
Dashboard /wp-admin | 2,207 ▲16 | 6.02 ▲1.15 | 98.01 ▼12.01 | 41.52 ▼5.17 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▼0.06 | 38.87 ▼3.89 | 37.94 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.33 ▲5.11 | 598.98 ▼65.39 | 56.67 ▲7.30 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.03 | 94.20 ▼4.23 | 41.40 ▼3.71 |
1 Decembrie 1918 /wp-admin/options-general.php?page=1-decembrie-1918/1-decembrie-1918.php | 836 | 2.06 | 23.71 | 27.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/1-decembrie-1918/1-decembrie-1918.php+13
Use of undefined constant UNU_DEC_1918_TEXTDOMAIN - assumed 'UNU_DEC_1918_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=1-decembrie-1918/1-decembrie-1918.php
- > Warning in wp-content/plugins/1-decembrie-1918/1-decembrie-1918.php+13
Use of undefined constant UNU_DEC_1918_TEXTDOMAIN - assumed 'UNU_DEC_1918_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=1-decembrie-1918/1-decembrie-1918.php
- > Notice in wp-content/plugins/1-decembrie-1918/1-decembrie-1918.php+49
Undefined index: submit
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 fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1-decembrie-1918/1-decembrie-1918.php:21
- > PHP Warning
Use of undefined constant UNU_DEC_1918_TEXTDOMAIN - assumed 'UNU_DEC_1918_TEXTDOMAIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/1-decembrie-1918/1-decembrie-1918.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
1-decembrie-1918/1-decembrie-1918.php 92% from 13 tests
"1 Decembrie 1918" version 1.dec.2012...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.dec.2012...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected145 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 18 | 111 |
PO File | 1 | 10 | 13 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 8 | |
▷ Named functions | 8 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.59MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/1-decembrie-1918-11.png | 7.97KB | 3.45KB | ▼ 56.75% |
img/1-decembrie-1918-00.png | 2.07KB | 1.18KB | ▼ 43.15% |
img/1-decembrie-1918-10.png | 5.96KB | 2.71KB | ▼ 54.48% |
screenshot-2.png | 17.80KB | 6.26KB | ▼ 64.81% |
img/1-decembrie-1918.png | 7.97KB | 3.45KB | ▼ 56.75% |