Benchmarks
Plugin footprint 83% from 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.15MB] [CPU: ▼11.79ms] Passed 4 tests
An overview of server-side resources used by Randi
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.63 ▼5.11 |
Dashboard /wp-admin | 3.25 ▼0.06 | 39.51 ▼6.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.47 ▼17.16 |
Add New Post /wp-admin/post-new.php | 5.31 ▼0.58 | 71.42 ▼18.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.67 ▲2.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Randi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.10 | 1.62 ▼0.20 | 40.09 ▼10.27 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.95 | 114.06 ▼0.50 | 41.66 ▼5.36 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.04 | 40.40 ▼1.28 | 36.54 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,534 ▲10 | 23.23 ▼0.32 | 685.48 ▲81.50 | 48.95 ▼1.55 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.01 | 103.19 ▼9.44 | 42.55 ▲0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/randi/randi.php on line 22
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/randi/randi.php on line 22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/randi/randi.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function Randi\\add_action() in wp-content/plugins/randi/php/actions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Randi\\add_filter() in wp-content/plugins/randi/php/filters.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: users
randi/randi.php Passed 13 tests
The main PHP file in "Randi" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Fill your WordPress site with random users.
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
Success! There were no dangerous files found in this plugin225 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 58 | 197 | 225 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected