58% page-blocker-seeya

Code Review | Pageblocker "Seeya"

WordPress plugin Pageblocker "Seeya" scored58%from 54 tests.

About plugin

  • Plugin page: page-blocker-seeya
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Dec 20, 2012
  • Latest release: Dec 21, 2012
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: datarumx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /699 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.03 ▼7.31
Dashboard /wp-admin3.04 ▼0.3025.80 ▼40.43
Posts /wp-admin/edit.php3.04 ▼0.3126.81 ▼22.94
Add New Post /wp-admin/post-new.php3.04 ▼2.8426.85 ▼72.89
Media Library /wp-admin/upload.php3.04 ▼0.1928.00 ▼8.35
"Seeya" settings /wp-admin/plugins.php?page=seeya-settings3.1422.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3813.23 ▼0.941.90 ▼0.3443.13 ▼0.65
Dashboard /wp-admin2,218 ▲274.94 ▼0.98120.79 ▲7.7544.43 ▲0.03
Posts /wp-admin/edit.php2,101 ▲92.04 ▼0.0140.13 ▲1.8134.64 ▼3.99
Add New Post /wp-admin/post-new.php1,521 ▲723.00 ▲1.51671.38 ▼38.9560.32 ▲2.97
Media Library /wp-admin/upload.php1,397 ▲124.23 ▲0.07104.66 ▲7.1844.64 ▼1.69
"Seeya" settings /wp-admin/plugins.php?page=seeya-settings9882.2737.0934.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP41309365
CSS1331167
JavaScript118030

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 code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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