90% one-click-logo

Code Review | One Click Logo

WordPress plugin One Click Logo scored90%from 54 tests.

About plugin

  • Plugin page: one-click-logo
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: May 1, 2021
  • Number of updates: 11
  • Update frequency: every 0.8 days
  • Top authors: rajankarmakar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.11ms] Passed 4 tests

Server-side resources used by One Click Logo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.00 ▼6.45
Dashboard /wp-admin3.48 ▲0.1449.44 ▼13.65
Posts /wp-admin/edit.php3.54 ▲0.1855.69 ▲4.90
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.53 ▼6.84
Media Library /wp-admin/upload.php3.32 ▲0.0936.90 ▲2.52

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
ocl_version
can_compress_scripts
ocl_installed

Browser metrics Passed 4 tests

One Click Logo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲22014.87 ▲0.581.89 ▲0.0341.88 ▼0.42
Dashboard /wp-admin2,347 ▲1596.39 ▲0.53134.26 ▲23.6741.73 ▼1.17
Posts /wp-admin/edit.php2,250 ▲1583.31 ▲1.3048.50 ▲10.9332.96 ▼3.01
Add New Post /wp-admin/post-new.php1,681 ▲16724.39 ▲6.93592.13 ▼38.7435.84 ▼21.60
Media Library /wp-admin/upload.php1,395 ▲74.13 ▼0.1180.88 ▼26.4742.28 ▼1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • ocl_installed
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • ocl_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues 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
6 plugin tags: wordpress login logo, login, logo, custom logo, login page logo...

one-click-logo/one-click-logo.php 92% from 13 tests

The main PHP file in "One Click Logo" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.6")

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
No dangerous file extensions were detected782 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12245263689
PO File19938
JSON20024
JavaScript11020
CSS1008
Markdown1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods51
▷ Static methods1631.37%
▷ Public methods4894.12%
▷ Protected methods00.00%
▷ Private methods35.88%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin