72% logaster-logo-generator

Code Review | Logaster Logo Generator

WordPress plugin Logaster Logo Generator scored 72% from 54 tests.

About plugin

  • Plugin page: logaster-logo-gen...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.9.2
  • First release: Feb 9, 2016
  • Latest release: Nov 9, 2016
  • Number of updates: 15
  • Update frequency: every 18.5 days
  • Top authors: logaster (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

4,000+ active / 37,713 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼305.18ms] Passed 4 tests

This is a short check of server-side resources used by Logaster Logo Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1363.77 ▲14.94
Dashboard /wp-admin3.49 ▲0.0834.58 ▼1.79
Posts /wp-admin/edit.php3.72 ▲0.0741.78 ▲2.97
Add New Post /wp-admin/post-new.php6.96 ▼0.0293.68 ▼1,222.06
Media Library /wp-admin/upload.php3.37 ▲0.0727.66 ▲0.18
Logo details /wp-admin/admin.php?page=logotype-details3.3522.24

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Logaster Logo Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,830 ▲8515.28 ▼0.756.10 ▲0.742.11 ▼1.24
Dashboard /wp-admin2,937 ▲766.18 ▼0.01119.22 ▼23.23161.69 ▼4.51
Posts /wp-admin/edit.php2,736 ▲423.25 ▲0.0165.06 ▲1.26142.96 ▼2.33
Add New Post /wp-admin/post-new.php1,765 ▲7521.03 ▲0.38454.48 ▼4.38161.37 ▼4.57
Media Library /wp-admin/upload.php1,746 ▲485.48 ▼0.00143.82 ▼20.89187.34 ▼13.64
Logo details /wp-admin/admin.php?page=logotype-details1,0282.6254.8489.03

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
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/logaster-logo-generator/class.logaster.php+69
    rmdir(wp-content/uploads/logos): Directory not empty

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=logotype-details
    • > Notice in wp-content/plugins/logaster-logo-generator/views/logo_details.php+20
    Trying to access array offset on value of type null

SRP 50% from 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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/logaster-logo-generator/views/logo_details.php
    • > /wp-content/plugins/logaster-logo-generator/logaster-logo-generator.php
    • > /wp-content/plugins/logaster-logo-generator/views/create_logo.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=logotype-details
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=logotype-details 156:37 Uncaught SyntaxError: Unexpected token '}'

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: logo plugin, logo, logotype, free logo, create logo...

logaster-logo-generator/logaster-logo-generator.php 92% from 13 tests

This is the main PHP file of "Logaster Logo Generator" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin554 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP410092442
PO File1212173
CSS15039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods947.37%
▷ Public methods1157.89%
▷ Protected methods00.00%
▷ Private methods842.11%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
No PNG images were found in this plugin