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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.93ms] Passed 4 tests
An overview of server-side resources used by ID Arrays
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.03 ▼9.83 |
Dashboard /wp-admin | 3.57 ▲0.23 | 56.55 ▼8.39 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 47.87 ▲3.28 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 83.57 ▼8.80 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.01 ▲4.34 |
ID Arrays /wp-admin/options-general.php?page=id-arrays | 3.48 | 34.99 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ida79_options_val |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
ID Arrays: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.24 ▼1.51 | 4.62 ▲2.79 | 39.42 ▼5.15 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▼0.03 | 99.60 ▼17.48 | 37.92 ▼8.86 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.00 ▼0.06 | 37.16 ▲3.01 | 34.67 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 23.25 ▲5.73 | 661.73 ▼14.47 | 59.50 ▲9.03 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.19 ▼0.00 | 94.75 ▼3.72 | 40.05 ▼1.62 |
ID Arrays /wp-admin/options-general.php?page=id-arrays | 1,010 | 2.04 | 25.36 | 26.37 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- ida79_options_val
- db_upgraded
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/id-arrays/id-arrays-main.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/id-arrays/includes/id-arrays-post-type-list-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/id-arrays/id-arrays-options.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/id-arrays/includes/id-arrays-template-list-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/id-arrays/includes/id-arrays-tax-list-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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 to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== id-arrays ===
) - Tags: You are using too many tags: 12 tag instead of maximum 10
id-arrays/id-arrays-main.php 92% from 13 tests
Analyzing the main PHP file in "ID Arrays" version 2.1.2
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("id-arrays.php" instead of "id-arrays-main.php")
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 plugin979 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 133 | 123 | 955 |
JavaScript | 1 | 0 | 19 | 24 |
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.48 |
Average class complexity | 26.25 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
2 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/example-2.png | 35.19KB | 20.30KB | ▼ 42.33% |
includes/example-1.png | 241.38KB | 97.52KB | ▼ 59.60% |