Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.33ms] Passed 4 tests
Analyzing server-side resources used by Eorzea Time
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.14 ▲0.41 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.53 ▼2.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.86 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 100.57 ▲5.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.10 ▼3.35 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_eorzeatime |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Eorzea Time
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.58 ▼0.97 | 11.69 ▲9.82 | 46.56 ▲8.26 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.04 | 91.13 ▲0.63 | 41.21 ▼1.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 39.04 ▲0.11 | 35.78 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.12 ▲4.97 | 646.49 ▲9.88 | 60.43 ▼0.77 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.25 ▲0.06 | 99.11 ▼12.17 | 42.29 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_eorzeatime
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/eorzea-time/inc/shortcodes.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eorzea-time/eorzea-time.php:110
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/eorzea-time/inc/actionhooks.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: widget
eorzea-time/eorzea-time.php 92% from 13 tests
"Eorzea Time" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin445 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 39 | 331 |
JavaScript | 1 | 9 | 1 | 67 |
CSS | 1 | 10 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 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 |
images/moon1.png | 3.99KB | 2.54KB | ▼ 36.41% |
images/moon0.png | 3.50KB | 2.43KB | ▼ 30.56% |
images/moon5.png | 4.94KB | 3.06KB | ▼ 38.02% |
images/moon2.png | 4.49KB | 2.81KB | ▼ 37.29% |
images/moon3.png | 4.89KB | 3.08KB | ▼ 36.95% |