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-5.8
  • WordPress version: 5.9.2
  • First release: Jul 10, 2021
  • Latest release: Jul 29, 2021
  • Number of updates: 17
  • Update frequency: every 1.1 days
  • Top authors: ada2go (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 893 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼291.23ms] Passed 4 tests

Analyzing server-side resources used by Ada2go - Text Modules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0763.03 ▲7.47
Dashboard /wp-admin3.44 ▲0.0438.99 ▼1.52
Posts /wp-admin/edit.php3.68 ▲0.0459.52 ▲16.10
Add New Post /wp-admin/post-new.php6.92 ▼0.05100.08 ▼1,169.89
Media Library /wp-admin/upload.php3.33 ▲0.0331.01 ▼0.98
Text Modules /wp-admin/options-general.php?page=a2g_tm_settings3.4127.05

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: 2 new tables, 1 new option
New tables
wp_a2g_tm_text
wp_a2g_tm_kategorie
New WordPress options
a2g_tm_output_css

Browser metrics Passed 4 tests

A check of browser resources used by Ada2go - Text Modules
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲2815.93 ▼0.085.76 ▼0.372.35 ▼0.05
Dashboard /wp-admin2,899 ▲386.16 ▲0.07126.33 ▼8.63160.54 ▼5.39
Posts /wp-admin/edit.php2,695 ▲13.24 ▲0.0164.59 ▼0.97141.13 ▼3.26
Add New Post /wp-admin/post-new.php1,673 ▲1518.17 ▼2.18390.12 ▼11.18164.02 ▲7.45
Media Library /wp-admin/upload.php1,708 ▲105.54 ▲0.05133.24 ▼16.48192.20 ▼0.84
Text Modules /wp-admin/options-general.php?page=a2g_tm_settings2,85112.29208.03170.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_a2g_tm_text
    • wp_a2g_tm_kategorie
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • a2g_tm_output_css

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ada2go-text-modules/ada2go-text-modules.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ada2go-text-modules/a2g_tm_result.php:4
    • > 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 32
    • > 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 68
    • > PHP Notice
      Undefined index: action in wp-content/plugins/ada2go-text-modules/settings_page.php on line 86

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: modules, shortcode, text, modul, generator

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

The main PHP file in "Ada2go - Text Modules" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 171 characters long)

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
There were no executable files found in this plugin579 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4111120531
CSS111548

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin