90% enfold-logo-per-page

Code Review | Enfold logo per page

WordPress plugin Enfold logo per page scored 90% from 54 tests.

About plugin

  • Plugin page: enfold-logo-per-page
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2019
  • Latest release: Jun 17, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: amitk06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Enfold logo per page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.47 ▼6.54
Dashboard /wp-admin3.31 ▲0.0145.66 ▼8.98
Posts /wp-admin/edit.php3.36 ▲0.0144.62 ▼10.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.09 ▼4.87
Media Library /wp-admin/upload.php3.24 ▲0.0137.23 ▲0.28

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Enfold logo per page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.24 ▼1.061.75 ▼0.0843.84 ▲3.81
Dashboard /wp-admin2,215 ▲274.85 ▼1.05101.10 ▼11.9541.63 ▲2.18
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0134.79 ▼0.2233.39 ▲0.85
Add New Post /wp-admin/post-new.php1,541 ▲723.13 ▼0.49603.26 ▼15.1955.24 ▼4.60
Media Library /wp-admin/upload.php1,394 ▲94.25 ▲0.0597.94 ▼16.2742.50 ▼5.52

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_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: display logo, page, enfold, enfold logo, different logo for page...

enfold-logo-per-page/enfold-logo-per-page.php Passed 13 tests

"Enfold logo per page" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
This plugin useful for display different logo for different page (only for enfold theme)

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 detected222 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32811173
CSS14049

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.50
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods753.85%
▷ Protected methods00.00%
▷ Private methods646.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin