79% ltm-popup-form

Code Review | LotekMedia Popup Form

WordPress plugin LotekMedia Popup Form scored 79% from 54 tests.

About plugin

  • Plugin page: ltm-popup-form
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: May 6, 2014
  • Latest release: Sep 23, 2014
  • Number of updates: 18
  • Update frequency: every 7.8 days
  • Top authors: lotekmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by LotekMedia Popup Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.01 ▼1.63
Dashboard /wp-admin3.34 ▲0.0347.50 ▼2.11
Posts /wp-admin/edit.php3.39 ▲0.0351.38 ▲0.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.64 ▼3.49
Media Library /wp-admin/upload.php3.26 ▲0.0334.73 ▼0.21
LTM Popup Form /wp-admin/options-general.php?page=__ltm-popup-admin-page__3.2830.92

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for LotekMedia Popup Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲14313.57 ▼0.745.50 ▲3.4541.86 ▼1.83
Dashboard /wp-admin2,213 ▲254.83 ▼1.00102.22 ▼3.9839.05 ▼3.56
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0437.44 ▼2.6431.02 ▼5.38
Add New Post /wp-admin/post-new.php1,536 ▲323.41 ▲0.17668.72 ▼9.6853.42 ▲0.84
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0395.11 ▼10.6341.69 ▼4.51
LTM Popup Form /wp-admin/options-general.php?page=__ltm-popup-admin-page__1,5652.8165.9127.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=__ltm-popup-admin-page__
    • > Notice in wp-content/plugins/ltm-popup-form/ltm-popup-setting.php+89
    Trying to access array offset on value of type bool

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ltm-popup-form/ltm-popup-form.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ltm-popup-form/ltm-popup-setting.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: popup, form

ltm-popup-form/ltm-popup-form.php Passed 13 tests

The primary PHP file in "LotekMedia Popup Form" version 1.0.6 is used by WordPress to initiate all plugin functionality
44 characters long description:
Create and add popup forms for your website.

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
Success! There were no dangerous files found in this plugin670 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP24424227
PO File27373183
CSS11317143
JavaScript3211117

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected