Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.11ms] Passed 4 tests
This is a short check of server-side resources used by Tutsup Modal
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.02 | 38.66 ▼3.77 |
Dashboard /wp-admin | 3.59 ▲0.03 | 52.53 ▼0.02 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 55.34 ▲2.48 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.04 | 99.28 ▼10.86 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 39.56 ▲2.22 |
Tutsup Modal /wp-admin/options-general.php?page=tutsup-simple-modal | 3.49 | 34.61 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tutsup Modal
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.62 ▲0.24 | 1.66 ▼0.27 | 45.02 ▼2.02 |
Dashboard /wp-admin | 2,221 ▲41 | 5.85 ▲0.18 | 84.14 ▼9.10 | 38.55 ▼11.61 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.39 ▲0.38 | 42.98 ▲4.72 | 38.36 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.41 ▲5.79 | 626.94 ▼38.10 | 33.60 ▼17.68 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.45 ▲0.27 | 104.54 ▼1.67 | 43.92 ▼2.66 |
Tutsup Modal /wp-admin/options-general.php?page=tutsup-simple-modal | 898 | 2.10 | 27.32 | 30.34 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tutsup-simple-modal/views/tutsup-index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tutsup-simple-modal/views/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function tutsup_check_option() in wp-content/plugins/tutsup-simple-modal/views/tutsup-modal-html.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tutsup-simple-modal/views/tutsup-modal-style.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_theme_textdomain() in wp-content/plugins/tutsup-simple-modal/tutsup-modal.php:32
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=tutsup-simple-modal
- > Network (severe)
wp-content/themes/twentytwentyone/js/admin_settings.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: modal
tutsup-simple-modal/tutsup-modal.php 85% from 13 tests
Analyzing the main PHP file in "Tutsup Modal" version 0.2.2
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tutsup-simple-modal.php" instead of "tutsup-modal.php")
- Description: The description should be shorter than 140 characters (currently 225 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin313 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 50 | 53 | 270 |
PO File | 1 | 13 | 0 | 43 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected