84% oswald-lite-extension

Code Review | Oswald Lite Extension

WordPress plugin Oswald Lite Extension scored84%from 54 tests.

About plugin

  • Plugin page: oswald-lite-exten...
  • Plugin version: 1.0.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Apr 9, 2019
  • Number of updates: 9
  • Update frequency: every 23.2 days
  • Top authors: wpda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,158 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.80ms] Passed 4 tests

A check of server-side resources used by Oswald Lite Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.93 ▼2.58
Dashboard /wp-admin3.32 ▼0.0356.68 ▼7.89
Posts /wp-admin/edit.php3.37 ▲0.0147.26 ▼4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.96 ▼4.37
Media Library /wp-admin/upload.php3.24 ▲0.0137.10 ▲1.32

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Oswald Lite Extension: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3214.23 ▼0.031.76 ▼0.4043.06 ▼2.54
Dashboard /wp-admin2,195 ▲155.63 ▲0.0283.06 ▼10.7938.60 ▼6.70
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0635.24 ▼1.7334.92 ▼0.50
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.61690.00 ▼2.5557.55 ▼6.33
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.06108.93 ▲1.3747.33 ▲1.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/header/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/services/services.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oswald-lite-extension/includes/theme-adding-functions.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/team/team.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/about/about.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/contact/contact.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/partners/partners.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/testimonial/testimonial.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oswald_option() in wp-content/plugins/oswald-lite-extension/templates/frontpage/call_to_action/call_to_action.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_panel() on null in wp-content/plugins/oswald-lite-extension/includes/customizer/register-panels-and-sections.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: single page, one page, woocommerce, portfolio, gallery...

oswald-lite-extension/oswald-lite-extension.php 92% from 13 tests

The entry point to "Oswald Lite Extension" version 1.0.4.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin6,553 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP285323676,115
JavaScript1290438

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.30
Average class complexity12.75
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ 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