Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼36.15ms] Passed 4 tests
Server-side resources used by Pageblocker "Seeya"
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.03 ▼7.31 |
Dashboard /wp-admin | 3.04 ▼0.30 | 25.80 ▼40.43 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 26.81 ▼22.94 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.84 | 26.85 ▼72.89 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 28.00 ▼8.35 |
"Seeya" settings /wp-admin/plugins.php?page=seeya-settings | 3.14 | 22.75 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_seeya_questions_table |
wp_seeya_assoc_questions |
New WordPress options |
---|
can_compress_scripts |
seeya_uninstall_option |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Pageblocker "Seeya"
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲38 | 13.23 ▼0.94 | 1.90 ▼0.34 | 43.13 ▼0.65 |
Dashboard /wp-admin | 2,218 ▲27 | 4.94 ▼0.98 | 120.79 ▲7.75 | 44.43 ▲0.03 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.04 ▼0.01 | 40.13 ▲1.81 | 34.64 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.00 ▲1.51 | 671.38 ▼38.95 | 60.32 ▲2.97 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.23 ▲0.07 | 104.66 ▲7.18 | 44.64 ▼1.69 |
"Seeya" settings /wp-admin/plugins.php?page=seeya-settings | 988 | 2.27 | 37.09 | 34.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables detected upon uninstall: 2 tables
- wp_seeya_assoc_questions
- wp_seeya_questions_table
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- seeya_uninstall_option
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+98
Undefined index: seeya_approve_submit
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+109
Undefined index: seeya_question_submit
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+146
Undefined index: seeya_edit_question_submit
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+181
Undefined index: seeya_delete_question_submit
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+198
Undefined index: add_question
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+19
Undefined index: seeya_page_id
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+36
Undefined index: question_slug
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+38
Undefined index: text_slug
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+40
Undefined index: question_answer
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+54
Undefined variable: approve_success
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+63
Undefined variable: edit_success
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+69
Undefined variable: edit_text_error
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > Notice in wp-content/plugins/page-blocker-seeya/view/settingsView.phtml+71
Undefined variable: edit_answer_error
- 4 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+242
Undefined index: question_id
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+248
Undefined index: seeya_edit_question_slug
- > GET request to /wp-admin/plugins.php?page=seeya-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/page-blocker-seeya/pageblocker.php+239
Undefined index: page_id
SRP 50% 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 trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/page-blocker-seeya/pageblocker.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: password, page
page-blocker-seeya/pageblocker.php 92% from 13 tests
"Pageblocker "Seeya"" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-blocker-seeya.php" instead of "pageblocker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin562 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 9 | 365 |
CSS | 1 | 33 | 1 | 167 |
JavaScript | 1 | 18 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin