90% lana-text-to-image

Code Review | Lana Text to Image

WordPress plugin Lana Text to Image scored 90% from 54 tests.

About plugin

  • Plugin page: lana-text-to-image
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Jun 23, 2023
  • Number of updates: 5
  • Update frequency: every 112.6 days
  • Top authors: lanacodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 353 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼5.82ms] Passed 4 tests

An overview of server-side resources used by Lana Text to Image
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.65 ▼5.94
Dashboard /wp-admin3.33 ▲0.0345.24 ▼0.47
Posts /wp-admin/edit.php3.38 ▲0.0246.67 ▲0.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.91 ▼17.18
Media Library /wp-admin/upload.php3.25 ▲0.0237.34 ▲1.65

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Lana Text to Image
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.151.83 ▲0.1242.82 ▼4.18
Dashboard /wp-admin2,211 ▲235.86 ▼0.01101.21 ▼4.5340.02 ▼6.85
Posts /wp-admin/edit.php2,088 ▼12.00 ▲0.0038.27 ▼0.8233.83 ▼5.44
Add New Post /wp-admin/post-new.php1,539 ▲1918.36 ▼4.86592.22 ▼21.1750.97 ▲0.82
Media Library /wp-admin/upload.php1,393 ▲24.22 ▲0.0496.42 ▼0.4640.96 ▼2.14

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: text to image, security, privacy, shortcode

lana-text-to-image/lana-text-to-image.php Passed 13 tests

The entry point to "Lana Text to Image" version 1.1.0 is a PHP file that has certain tags in its header comment area
36 characters long description:
Easy to use text to image shortcode.

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
There were no executable files found in this plugin112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1406477
JavaScript12024
CSS11011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin