63% teoola

Code Review | !teoola

WordPress plugin !teoola scored63%from 54 tests.

About plugin

  • Plugin page: teoola
  • Plugin version: 1.5.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.6
  • WordPress version: 6.3.1
  • First release: Jun 26, 2019
  • Latest release: Oct 11, 2021
  • Number of updates: 40
  • Update frequency: every 21.0 days
  • Top authors: teoolapro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /825 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.72ms] Passed 4 tests

This is a short check of server-side resources used by !teoola
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.21 ▼1.17
Dashboard /wp-admin3.45 ▲0.1554.45 ▲3.88
Posts /wp-admin/edit.php3.56 ▲0.2151.34 ▼1.03
Add New Post /wp-admin/post-new.php6.03 ▲0.1488.86 ▼4.54
Media Library /wp-admin/upload.php3.37 ▲0.1440.02 ▲5.52
Settings /wp-admin/admin.php?page=teoola-setting-page3.1727.82

Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 6 new options
New tables
wp_teoola_popups
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for !teoola
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6513.24 ▼1.321.73 ▼0.4138.91 ▼4.64
Dashboard /wp-admin2,231 ▲395.82 ▲0.85109.88 ▼0.1269.12 ▲25.95
Posts /wp-admin/edit.php2,111 ▲222.00 ▼0.0638.39 ▲3.9935.89 ▲3.37
Add New Post /wp-admin/post-new.php1,687 ▲16722.41 ▼0.70768.05 ▲75.1352.23 ▼22.88
Media Library /wp-admin/upload.php1,407 ▲164.25 ▲0.05102.17 ▼5.3369.26 ▲24.09
Settings /wp-admin/admin.php?page=teoola-setting-page9802.3232.4353.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_teoola_popups
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=teoola-setting-page
    • > Notice in wp-content/plugins/teoola/login.php+19
    Undefined variable: last_user

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/teoola/modal.php
    • > /wp-content/plugins/teoola/contact_steps.php
  • 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/teoola/settings.php:74
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/teoola/settings_apikey.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/teoola/view/events.php:5
    • > PHP Notice
      Undefined variable: default_bg_icon_color in wp-content/plugins/teoola/settings.php on line 40
    • > PHP Notice
      Undefined variable: list_popups in wp-content/plugins/teoola/modal.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/teoola/settings_events.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/teoola/settings_apikey.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/teoola/view/calendar_news.php:8
    • > PHP Notice
      Undefined variable: default_header_color in wp-content/plugins/teoola/settings.php on line 43
    • > PHP Notice
      Undefined variable: arr_user in wp-content/plugins/teoola/settings_apikey.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: teoola

teoola/teoola.php Passed 13 tests

The entry point to "!teoola" version 1.5.7 is a PHP file that has certain tags in its header comment area
121 characters long description:
!teoola affords a "new insigh" into an address book and creates a "word of mouth" recommendation tool on your Smartphone.

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
There were no executable files found in this plugin11,253 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74431,7368,141
PHP17154711,650
CSS513330863
PO File2158166418
SVG100181

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/teoola-icon.png0.16KB0.17KB0.00%