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.11MB] [CPU: ▼6.52ms] Passed 4 tests
A check of server-side resources used by Lorem Toolbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.16 ▼5.98 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.06 ▼3.74 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 44.11 ▼6.56 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 81.81 ▼9.80 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 36.74 ▲0.83 |
🧰 lorem toolbox settings /wp-admin/options-general.php?page=eb_lorem_slug | 3.33 | 33.68 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
eb_lorem__options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Lorem Toolbox: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.66 ▼0.71 | 4.83 ▲3.04 | 42.35 ▼9.96 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.05 | 104.26 ▲1.39 | 41.07 ▼3.88 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.04 | 36.25 ▼8.88 | 36.84 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6,535 ▲5,002 | 20.17 ▼2.92 | 940.58 ▲307.28 | 71.79 ▲18.01 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.01 | 95.39 ▲1.21 | 50.34 ▲10.41 |
🧰 lorem toolbox settings /wp-admin/options-general.php?page=eb_lorem_slug | 1,063 | 2.74 | 54.17 | 59.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lorem-toolbox/includes/lorem_meta_box_display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: have_lorem_shortcut in wp-content/plugins/lorem-toolbox/includes/lorem_meta_box_display.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/lorem-toolbox/includes/settings-page.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lorem-toolbox/lorem-toolbox.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
4 plugin tags: generate, post, development, lorem
lorem-toolbox/lorem-toolbox.php Passed 13 tests
The main PHP file in "Lorem Toolbox" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Plugin for auto content generation for development and testing purposes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin770 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 80 | 194 | 457 |
JavaScript | 6 | 19 | 46 | 191 |
CSS | 2 | 15 | 2 | 73 |
JSON | 2 | 0 | 0 | 49 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
No PNG images were found in this plugin