62% ada2go-text-modules

Code Review | Ada2go - Text Modules

WordPress plugin Ada2go - Text Modules scored 62% from 54 tests.

About plugin

  • Plugin page: ada2go-text-modules
  • Plugin version: 1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: May 13, 2022
  • Number of updates: 18
  • Update frequency: every 17.1 days
  • Top authors: ada2go (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,203 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.49ms] Passed 4 tests

Analyzing server-side resources used by Ada2go - Text Modules
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.62 ▼2.71
Dashboard /wp-admin3.34 ▲0.0348.15 ▲0.19
Posts /wp-admin/edit.php3.39 ▲0.0352.65 ▼0.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.57 ▼10.70
Media Library /wp-admin/upload.php3.27 ▲0.0334.93 ▲1.08
Text Modules /wp-admin/options-general.php?page=a2g_tm_settings3.3431.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 2 new tables, 7 new options
New tables
wp_a2g_tm_text
wp_a2g_tm_kategorie
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
a2g_tm_output_css
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ada2go - Text Modules
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.23 ▼1.071.94 ▼0.1043.13 ▲5.09
Dashboard /wp-admin2,209 ▲275.86 ▼0.01101.03 ▼4.3638.97 ▼5.50
Posts /wp-admin/edit.php2,098 ▲122.04 ▲0.0139.22 ▲1.7234.36 ▲1.14
Add New Post /wp-admin/post-new.php1,542 ▲918.75 ▼2.47635.34 ▼16.0162.28 ▼3.38
Media Library /wp-admin/upload.php1,388 ▲34.28 ▲0.0698.78 ▼4.6642.17 ▼1.80
Text Modules /wp-admin/options-general.php?page=a2g_tm_settings2,30010.18251.7268.06

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
These items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_a2g_tm_kategorie
    • wp_a2g_tm_text
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • a2g_tm_output_css
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=a2g_tm_settings
    • > Notice in wp-content/plugins/ada2go-text-modules/settings_page.php+200
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=a2g_tm_settings
    • > Notice in wp-content/plugins/ada2go-text-modules/settings_page.php+157
    Undefined variable: a2g_out_kat
    • > GET request to /wp-admin/options-general.php?page=a2g_tm_settings
    • > Notice in wp-content/plugins/ada2go-text-modules/ada2go-text-modules.php+277
    Undefined variable: a2g_built_category_table
    • > GET request to /wp-admin/options-general.php?page=a2g_tm_settings
    • > Notice in wp-content/plugins/ada2go-text-modules/ada2go-text-modules.php+300
    Undefined variable: a2g_built_text_table

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ada2go-text-modules/ada2go-text-modules.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ada2go-text-modules/settings_page.php:155
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 98
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 58
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 68
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 5
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ada2go-text-modules/a2g_tm_result.php:4
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: modules, modul, generator, shortcode, text

ada2go-text-modules/ada2go-text-modules.php 92% from 13 tests

The entry point to "Ada2go - Text Modules" version 1.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected579 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4111120531
CSS111548

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin