78% upload-genesis-logo

Code Review | Upload Genesis Logo

WordPress plugin Upload Genesis Logo scored78%from 54 tests.

About plugin

  • Plugin page: upload-genesis-logo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 4, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: corlax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Upload Genesis Logo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.97 ▼2.47
Dashboard /wp-admin3.32 ▲0.0249.47 ▼8.45
Posts /wp-admin/edit.php3.38 ▲0.0249.10 ▼1.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0186.01 ▼16.29
Media Library /wp-admin/upload.php3.25 ▲0.0140.73 ▲2.50
Upload Logo /wp-admin/admin.php?page=upload-genesis-logo3.2237.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Upload Genesis Logo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.291.79 ▼0.1937.95 ▼8.27
Dashboard /wp-admin2,189 ▲125.52 ▼0.0686.10 ▼14.2646.41 ▼0.27
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0436.68 ▲0.3938.66 ▲2.78
Add New Post /wp-admin/post-new.php1,526 ▼022.94 ▲0.11692.18 ▼72.0857.93 ▼10.25
Media Library /wp-admin/upload.php1,394 ▼04.17 ▲0.06103.85 ▼1.0743.42 ▼0.18
Upload Logo /wp-admin/admin.php?page=upload-genesis-logo9212.0027.6929.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=upload-genesis-logo
    • > Notice in wp-content/plugins/upload-genesis-logo/lib/page-view.php+36
    Undefined variable: value
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=upload-genesis-logo
    • > Notice in wp-content/plugins/upload-genesis-logo/lib/page-view.php+36
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/upload-genesis-logo/lib/page-view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upload-genesis-logo/upload-genesis.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: wordpress, membership, plugins

upload-genesis-logo/upload-genesis.php 92% from 13 tests

"Upload Genesis Logo" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("upload-genesis-logo.php" instead of "upload-genesis.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected131 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23319131

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.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