78% owids

Code Review | Owids - 10+ Widgets

WordPress plugin Owids - 10+ Widgets scored78%from 54 tests.

About plugin

  • Plugin page: owids
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Aug 6, 2020
  • Number of updates: 12
  • Update frequency: every 28.2 days
  • Top authors: owids (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /728 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.48ms] Passed 4 tests

This is a short check of server-side resources used by Owids - 10+ Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.66 ▼3.99
Dashboard /wp-admin3.36 ▲0.0652.50 ▼1.70
Posts /wp-admin/edit.php3.47 ▲0.1246.41 ▼1.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.49 ▼17.39
Media Library /wp-admin/upload.php3.28 ▲0.0535.38 ▼2.85
Owids /wp-admin/options-general.php?page=owids3.2539.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Owids - 10+ Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.64 ▼0.731.72 ▼1.1339.73 ▼8.76
Dashboard /wp-admin2,210 ▲224.81 ▼1.08103.44 ▼13.2839.35 ▼4.74
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0633.95 ▼2.4932.25 ▼2.85
Add New Post /wp-admin/post-new.php1,538 ▲1923.25 ▼0.19655.12 ▼6.1950.86 ▼4.99
Media Library /wp-admin/upload.php1,389 ▲44.20 ▼0.0192.58 ▼17.7241.97 ▼0.06
Owids /wp-admin/options-general.php?page=owids8482.3936.8143.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/owids/admin/partials/owids-admin-display.php
    • > /wp-content/plugins/owids/public/partials/owids-public-snippet.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: api_key in wp-content/plugins/owids/public/partials/owids-public-snippet.php on line 20
    • > PHP Warning
      Use of undefined constant OWIDS_SDK_URL - assumed 'OWIDS_SDK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/owids/public/partials/owids-public-snippet.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
Please take inspiration from this readme.txt

owids/owids.php Passed 13 tests

The principal PHP file in "Owids - 10+ Widgets" v. 1.0.2 is loaded by WordPress automatically on each request
126 characters long description:
Powerful widgets that help grow your business, optimize your website conversion rates, increase visitor engagement in no time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin11,187 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,9752,02110,950
PHP14139552235
CSS1102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin