Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.66ms] Passed 4 tests
This is a short check of server-side resources used by Simple catalogue
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.87 ▼1.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.63 ▼0.65 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.39 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.02 ▼4.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.82 ▼1.39 |
Add Categories /wp-admin/admin.php?page=categories | 3.22 | 31.77 |
Update /wp-admin/admin.php?page=edit-simple-catalogue | 3.22 | 30.93 |
Add new /wp-admin/admin.php?page=add_new_item | 3.22 | 30.11 |
Simple Catalogue /wp-admin/options-general.php?page=sc_settings | 3.22 | 30.86 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sc_post_type |
wp_sc_category |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple catalogue
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.23 ▼0.94 | 1.65 ▲0.01 | 41.91 ▲0.62 |
Dashboard /wp-admin | 2,222 ▲31 | 4.87 ▼0.03 | 109.48 ▲4.64 | 38.44 ▼0.84 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.06 ▲0.06 | 41.47 ▲0.35 | 37.36 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,546 ▲25 | 23.07 ▼0.47 | 650.83 ▼10.18 | 51.20 ▼13.75 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.22 ▼0.04 | 93.77 ▼19.60 | 40.47 ▼6.46 |
Add Categories /wp-admin/admin.php?page=categories | 818 | 2.03 | 23.16 | 24.71 |
Update /wp-admin/admin.php?page=edit-simple-catalogue | 769 | 2.02 | 25.50 | 30.64 |
Add new /wp-admin/admin.php?page=add_new_item | 845 | 2.15 | 21.96 | 27.88 |
Simple Catalogue /wp-admin/options-general.php?page=sc_settings | 850 | 2.03 | 30.02 | 31.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'sc_drop_options' not found or invalid function name
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_can() in wp-content/plugins/simple-catalogue/simple-catalogue.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_can() in wp-content/plugins/simple-catalogue/sc-post-type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_can() in wp-content/plugins/simple-catalogue/edit-catalogue.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_can() in wp-content/plugins/simple-catalogue/validation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_can() in wp-content/plugins/simple-catalogue/sc-taxonomie.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
simple-catalogue/simple-catalogue.php 92% from 13 tests
The primary PHP file in "Simple catalogue" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,343 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 312 | 364 | 787 |
PHP | 7 | 17 | 73 | 556 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin