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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.79ms] Passed 4 tests
This is a short check of server-side resources used by Peasy Admin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.65 ▲1.50 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.02 ▼1.51 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.58 ▲3.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.12 ▼11.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.03 ▼3.78 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Peasy Admin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.26 ▼1.13 | 1.72 ▼0.23 | 43.37 ▲5.72 |
Dashboard /wp-admin | 2,206 ▲17 | 4.86 ▼0.11 | 103.22 ▼18.33 | 36.89 ▼7.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 36.86 ▼3.09 | 36.08 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,535 ▼11 | 23.45 ▲5.38 | 664.31 ▲51.13 | 56.12 ▲4.23 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.28 ▲0.11 | 99.85 ▲5.47 | 44.76 ▲2.81 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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
Please take a closer look at the following
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/peasy-admin/classes/fields/class-mediafield.php
- > /wp-content/plugins/peasy-admin/classes/class-field.php
- > /wp-content/plugins/peasy-admin/classes/fields/class-dropdownfield.php
- > /wp-content/plugins/peasy-admin/classes/class-option.php
- > /wp-content/plugins/peasy-admin/classes/class-fieldset.php
- > /wp-content/plugins/peasy-admin/classes/class-adminpage.php
- > /wp-content/plugins/peasy-admin/classes/fields/class-checkboxfield.php
- > /wp-content/plugins/peasy-admin/classes/fields/class-textareafield.php
- > /wp-content/plugins/peasy-admin/classes/fields/class-customfield.php
- > /wp-content/plugins/peasy-admin/classes/class-section.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: peasy, options, admin, page, peasy admin...
peasy-admin/peasy-admin.php Passed 13 tests
The entry point to "Peasy Admin" version 1.2.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
An easy-pease API to build custom admin pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin574 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 248 | 472 |
JavaScript | 1 | 6 | 0 | 43 |
Markdown | 1 | 28 | 0 | 38 |
CSS | 1 | 3 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 8 | 14.29% |
▷ Public methods | 49 | 87.50% |
▷ Protected methods | 2 | 3.57% |
▷ Private methods | 5 | 8.93% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin