Benchmarks
Plugin footprint Passed 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: ▼140.52ms] Passed 4 tests
An overview of server-side resources used by Lorem Ipsum Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.12 | 35.11 ▲10.12 |
Dashboard /wp-admin | 3.07 ▲0.01 | 47.29 ▲5.00 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.22 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 86.72 ▼567.91 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.00 ▼0.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Lorem Ipsum Generator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.94 ▲0.40 | 11.11 ▼0.63 | 44.16 ▼11.81 |
Dashboard /wp-admin | 2,967 ▲36 | 5.88 ▼0.06 | 140.10 ▼4.16 | 112.10 ▼7.73 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 63.88 ▼5.19 | 90.57 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,872 ▲257 | 19.12 ▼2.35 | 357.28 ▲82.24 | 106.17 ▲3.80 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.06 ▲0.04 | 147.71 ▲5.90 | 113.52 ▼13.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-lorem-ipsum-generator/index.php:55
- > PHP Notice
Undefined index: words in wp-content/plugins/wp-lorem-ipsum-generator/ajax_load.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: lorem ipsum generator, lorem ipsum
wp-lorem-ipsum-generator/index.php 92% from 13 tests
The main PHP script in "Lorem Ipsum Generator" version 0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-lorem-ipsum-generator.php" instead of "index.php")
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
No dangerous file extensions were detected410 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 87 | 379 |
JavaScript | 2 | 5 | 1 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 14.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 85.71% |
Functions | 3 | |
▷ Named functions | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.22KB | 0.15KB | ▼ 34.65% |