Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.33ms] Passed 4 tests
Server-side resources used by wp cookiecuttr by nimrodstu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.08 | 25.55 ▼21.61 |
Dashboard /wp-admin | 3.31 ▲0.01 | 54.03 ▼2.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.76 ▲6.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.41 ▲1.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.84 ▲5.05 |
WP CookieCuttr /wp-admin/options-general.php?page=my-unique-identifier | 3.20 | 32.81 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
wp cookiecuttr by nimrodstu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲133 | 13.40 ▼1.00 | 10.96 ▲9.11 | 45.14 ▼0.20 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.10 | 92.75 ▲4.18 | 41.44 ▲4.72 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.07 | 40.33 ▲6.46 | 35.30 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.08 ▲0.07 | 662.08 ▼39.06 | 49.95 ▼6.53 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.24 ▼0.02 | 100.76 ▼5.79 | 47.53 ▲0.82 |
WP CookieCuttr /wp-admin/options-general.php?page=my-unique-identifier | 842 | 2.03 | 25.13 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=my-unique-identifier
- > Notice in wp-content/plugins/wp-cookiecuttr-by-nimrodstu/cookiecuttr.php+55
Trying to access array offset on value of type bool
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cookiecuttr-by-nimrodstu/cookiecuttr.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-cookiecuttr-by-nimrodstu ===
)
wp-cookiecuttr-by-nimrodstu/cookiecuttr.php 92% from 13 tests
The entry point to "wp cookiecuttr by nimrodstu" version 0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-cookiecuttr-by-nimrodstu.php" instead of "cookiecuttr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected433 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 26 | 62 | 316 |
PHP | 1 | 9 | 16 | 84 |
CSS | 1 | 3 | 1 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 5 | |
▷ Named functions | 5 | 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
PNG images were not found in this plugin