84% daily-logo

Code Review | Daily logo

WordPress plugin Daily logo scored84%from 54 tests.

About plugin

  • Plugin page: daily-logo
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Jul 26, 2022
  • Number of updates: 43
  • Update frequency: every 60.7 days
  • Top authors: lando1982 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▲0.38ms] Passed 4 tests

An overview of server-side resources used by Daily logo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2240.26 ▼3.02
Dashboard /wp-admin3.53 ▲0.2346.47 ▼6.13
Posts /wp-admin/edit.php3.65 ▲0.2950.10 ▲5.90
Add New Post /wp-admin/post-new.php6.11 ▲0.2297.09 ▲11.98
Media Library /wp-admin/upload.php3.46 ▲0.2238.09 ▲4.77
Manage /wp-admin/admin.php?page=daily_logo_menu3.4333.65
Settings /wp-admin/admin.php?page=daily_logo_menu_settings3.4335.09

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables
wp_daily_logo
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
daily_logo_db_version
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Daily logo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.16 ▼1.271.58 ▼0.2441.34 ▼2.31
Dashboard /wp-admin2,235 ▲444.86 ▼0.01105.98 ▼8.8339.43 ▼8.14
Posts /wp-admin/edit.php2,118 ▲292.03 ▲0.0539.19 ▼2.3535.27 ▲1.36
Add New Post /wp-admin/post-new.php1,552 ▲1923.15 ▼0.15691.06 ▲35.5956.34 ▲8.70
Media Library /wp-admin/upload.php1,417 ▲294.26 ▲0.0894.13 ▼7.1842.50 ▲0.45
Manage /wp-admin/admin.php?page=daily_logo_menu1,7672.0357.2239.92
Settings /wp-admin/admin.php?page=daily_logo_menu_settings1,0912.1942.1367.04

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • daily_logo_db_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-logo/daily-logo-services.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-logo/daily-logo-services.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-logo/daily-logo-utils.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-logo/daily-logo-services.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Daily logo items management), #2 (Settings admin page)
You can take inspiration from this readme.txt

daily-logo/daily-logo.php 92% from 13 tests

The main file in "Daily logo" v. 2.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin6,182 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON1004,305
PHP8204475998
CSS24267416
JavaScript24574236
PO File17686227

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
images/icon32.png1.28KB1.02KB▼ 20.35%