Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.48ms] Passed 4 tests
This is a short check of server-side resources used by Omnomnom
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.08 ▼2.99 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.12 ▼4.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.84 ▲4.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.84 ▼13.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.53 ▲3.00 |
Omnomnom /wp-admin/options-general.php?page=wp-omnomnom | 3.22 | 30.20 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Omnomnom
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.23 ▼1.38 | 4.57 ▲2.47 | 39.54 ▼9.93 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.13 | 96.33 ▼11.41 | 41.91 ▲2.71 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▼0.01 | 36.35 ▲0.27 | 33.75 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.39 ▲0.75 | 643.16 ▼45.63 | 49.83 ▼15.22 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.04 | 97.84 ▲3.56 | 41.90 ▼3.73 |
Omnomnom /wp-admin/options-general.php?page=wp-omnomnom | 799 | 2.03 | 33.63 | 23.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omnomnom/omnomnom.php:39
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: omnomnom, substring, replace, fun, translation
omnomnom/omnomnom.php Passed 13 tests
The principal PHP file in "Omnomnom" v. 0.1 is loaded by WordPress automatically on each request
41 characters long description:
Replace any instance of om with omnomnom.
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
There were no executable files found in this plugin86 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 36 | 86 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
3 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 55.47KB | 17.93KB | ▼ 67.68% |
assets/screenshot-2.png | 150.23KB | 49.84KB | ▼ 66.82% |
assets/screenshot-1.png | 46.51KB | 14.54KB | ▼ 68.73% |