10% tea-page-content

Code Review | Tea Page Content

WordPress plugin Tea Page Content scored10%from 54 tests.

About plugin

  • Plugin page: tea-page-content
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 31, 2015
  • Latest release: Nov 17, 2017
  • Number of updates: 32
  • Update frequency: every 21.6 days
  • Top authors: Tsjuder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,351 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/tea-page-content/tea-page-content.php+90
    require_once(wp-content/plugins/tea-page-content/App/Modules/Widget.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.70ms] Passed 4 tests

Server-side resources used by Tea Page Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.89 ▼3.80
Dashboard /wp-admin3.31 ▲0.0045.30 ▼2.71
Posts /wp-admin/edit.php3.36 ▲0.0046.56 ▼2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.06 ▼1.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.00 ▼1.68

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Tea Page Content
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.154.89 ▲3.2043.23 ▼1.89
Dashboard /wp-admin2,203 ▲155.85 ▼0.05108.70 ▲2.3837.42 ▼6.46
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0740.65 ▲3.1134.74 ▲3.16
Add New Post /wp-admin/post-new.php1,537 ▲323.20 ▼0.10665.73 ▲9.6353.23 ▲1.63
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.0194.14 ▼5.8648.55 ▲2.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/tea-page-content/uninstall.php+7
    include(config.map.php): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tea-page-content/templates/client/layouts/waterfall.php
    • > /wp-content/plugins/tea-page-content/templates/client/layouts/default.php
  • 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/tea-page-content/templates/client/layouts/waterfall.php on line 11
    • > PHP Fatal error
      Trait 'TeaPageContent\\App\\Traits\\Predicates\\TemplateVariables' not found in wp-content/plugins/tea-page-content/app/TemplateVariables/Parser.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tea-page-content/templates/client/modules/widget.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tea-page-content/templates/admin/modals/page-variables.php:3
    • > PHP Warning
      Division by zero in wp-content/plugins/tea-page-content/templates/client/layouts/waterfall.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tea-page-content/templates/client/layouts/waterfall.php on line 24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tea-page-content/templates/client/modules/widget.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_field_id() on null in wp-content/plugins/tea-page-content/templates/admin/modules/widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tea-page-content/templates/client/layouts/bootstrap-4.php:21
    • > PHP Fatal error
      Trait 'TeaPageContent\\App\\Traits\\Predicates\\Config' not found in wp-content/plugins/tea-page-content/app/Main/Settings.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

tea-page-content/tea-page-content.php 92% from 13 tests

"Tea Page Content" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 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
Everything looks great! No dangerous files found in this plugin4,799 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PHP891,1503243,791
CSS26510479
JavaScript313120363
PO File1317193
Markdown115073

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.41
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces19
Interfaces1
Traits9
Classes64
▷ Abstract classes00.00%
▷ Concrete classes64100.00%
▷ Final classes00.00%
Methods265
▷ Static methods00.00%
▷ Public methods17967.55%
▷ Protected methods00.00%
▷ Private methods8632.45%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin