84% szechenyi-2020-logo

Code Review | Széchenyi 2020 Logo

WordPress plugin Széchenyi 2020 Logo scored84%from 54 tests.

About plugin

  • Plugin page: szechenyi-2020-logo
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2021
  • Latest release: Mar 20, 2023
  • Number of updates: 10
  • Update frequency: every 44.5 days
  • Top authors: foldesistudio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /2,129 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.23ms] Passed 4 tests

Analyzing server-side resources used by Széchenyi 2020 Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2551.80 ▲11.07
Dashboard /wp-admin3.52 ▲0.2246.30 ▼3.29
Posts /wp-admin/edit.php3.64 ▲0.2843.45 ▼2.61
Add New Post /wp-admin/post-new.php6.10 ▲0.2285.39 ▼12.30
Media Library /wp-admin/upload.php3.45 ▲0.2238.51 ▲5.28
Széchenyi 2020 Logo /wp-admin/options-general.php?page=szechenyi-2020-setting-admin3.4234.20

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
szechenyi_2020_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Széchenyi 2020 Logo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.26 ▼1.111.81 ▼0.2838.08 ▼8.24
Dashboard /wp-admin2,224 ▲335.83 ▲0.94102.57 ▼3.7138.70 ▼1.97
Posts /wp-admin/edit.php2,107 ▲212.02 ▼0.0333.46 ▼2.1834.24 ▼2.79
Add New Post /wp-admin/post-new.php1,525 ▼817.61 ▼5.41616.64 ▼26.6755.08 ▲2.25
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.02102.34 ▲4.6748.92 ▲7.34
Széchenyi 2020 Logo /wp-admin/options-general.php?page=szechenyi-2020-setting-admin1,0412.0622.3344.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=szechenyi-2020-setting-admin
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=szechenyi-2020-setting-admin 173 The specified value " " cannot be parsed, or is out of range.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can look at the official readme.txt

szechenyi-2020-logo/szechenyi-2020-logo.php 92% from 13 tests

"Széchenyi 2020 Logo" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,660 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP152871591,282
PO File1114132285
Markdown133054
CSS28720
JavaScript25818
HTML1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.33
▷ Minimum class complexity3.00
▷ Maximum class complexity53.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods47
▷ Static methods12.13%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/szechenyi-2020-logo-top.png17.98KB18.81KB0.00%
assets/images/szechenyi-2020-logo-bottom.png12.11KB12.63KB0.00%