Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼20.27ms] Passed 4 tests
An overview of server-side resources used by WP Lorem (WL)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.33 ▼5.08 |
Dashboard /wp-admin | 3.08 ▼0.27 | 30.84 ▼33.82 |
Posts /wp-admin/edit.php | 3.22 ▼0.14 | 34.25 ▼13.85 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 73.79 ▼24.68 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 28.69 ▼8.72 |
WP Lorem /wp-admin/admin.php?page=wp_lorem | 3.06 | 27.77 |
Insert New /wp-admin/admin.php?page=wplorem_nn_insert_new | 3.06 | 28.42 |
Delete Posts /wp-admin/admin.php?page=wplorem_nn_delete_posts | 3.06 | 27.59 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Lorem (WL): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.58 ▲0.21 | 1.68 ▲0.19 | 43.88 ▲1.46 |
Dashboard /wp-admin | 2,245 ▲65 | 5.60 ▼0.08 | 92.58 ▲4.94 | 36.05 ▼9.12 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.04 ▲0.04 | 39.99 ▲2.44 | 34.79 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 23.67 ▲0.71 | 689.95 ▲27.20 | 60.38 ▼8.40 |
Media Library /wp-admin/upload.php | 1,453 ▲50 | 4.31 ▲0.07 | 102.43 ▼0.28 | 45.63 ▲0.95 |
WP Lorem /wp-admin/admin.php?page=wp_lorem | 938 | 1.67 | 24.46 | 27.49 |
Insert New /wp-admin/admin.php?page=wplorem_nn_insert_new | 927 | 1.68 | 27.11 | 31.28 |
Delete Posts /wp-admin/admin.php?page=wplorem_nn_delete_posts | 884 | 1.69 | 25.60 | 30.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wplorem_nn_delete_posts
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-lorem/admin/pages/wplorem-delete_posts.php
- > /wp-content/plugins/wp-lorem/admin/pages/wplorem-insert_new.php
- > /wp-content/plugins/wp-lorem/wp-lorem.php
- > /wp-content/plugins/wp-lorem/admin/wplorem_ajax-functions.php
- > /wp-content/plugins/wp-lorem/admin/pages/wplorem-admin.php
- > /wp-content/plugins/wp-lorem/admin/wplorem_functions.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-lorem/admin/inc/menu.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #5, #6 in wp-lorem/assets to your readme.txt
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
wp-lorem/wp-lorem.php Passed 13 tests
Analyzing the main PHP file in "WP Lorem (WL)" version 0.1.4
41 characters long description:
WP Lorem , import data to your Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin203 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 3 | 31 | 181 |
CSS | 2 | 0 | 0 | 19 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 28 | |
▷ Named functions | 28 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wplorem-btn_mce_20x20.png | 1.18KB | 0.26KB | ▼ 77.98% |
admin/images/wplorem-csscheckbox.png | 0.18KB | 0.11KB | ▼ 38.67% |
admin/images/wplorem-btn_mce_40x20.png | 1.38KB | 0.37KB | ▼ 72.98% |