84% unicon-extensions

Code Review | Unicon extensions

WordPress plugin Unicon extensions scored84%from 54 tests.

About plugin

  • Plugin page: unicon-extensions
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.3
  • WordPress version: 6.3.1
  • First release: Jul 15, 2017
  • Latest release: Aug 17, 2017
  • Number of updates: 9
  • Update frequency: every 25.5 days
  • Top authors: themezwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼3.62ms] Passed 4 tests

Analyzing server-side resources used by Unicon extensions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4741.30 ▼1.57
Dashboard /wp-admin3.74 ▲0.4449.88 ▼1.04
Posts /wp-admin/edit.php3.86 ▲0.5048.66 ▼0.31
Add New Post /wp-admin/post-new.php6.33 ▲0.4486.93 ▼11.54
Media Library /wp-admin/upload.php3.67 ▲0.4436.78 ▲2.63

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 13 new options
New WordPress options
db_upgraded
widget_unicon-client-widget
unicon_companion_flag
widget_recent-posts
widget_unicon-contact-widget
widget_unicon-service-widget
widget_recent-comments
widget_unicon-feature-widget
widget_unicon-team-widget
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Unicon extensions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.151.85 ▼0.1045.85 ▼1.45
Dashboard /wp-admin2,211 ▲224.90 ▼1.00104.23 ▼7.0837.43 ▼1.51
Posts /wp-admin/edit.php2,091 ▲22.04 ▲0.0436.77 ▼2.8833.00 ▼0.51
Add New Post /wp-admin/post-new.php1,530 ▼323.32 ▼0.01614.06 ▼57.6442.99 ▼10.49
Media Library /wp-admin/upload.php1,393 ▲54.21 ▲0.0395.07 ▼6.9943.44 ▼1.45

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
These items require your attention
  • The uninstall procedure has failed, leaving 13 options in the database
    • theysaidso_admin_options
    • widget_unicon-client-widget
    • widget_unicon-team-widget
    • widget_recent-posts
    • unicon_companion_flag
    • widget_unicon-ribbon-widget
    • widget_unicon-feature-widget
    • widget_theysaidso_widget
    • db_upgraded
    • widget_unicon-contact-widget
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/unicon-extensions/inc/demo.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-feature.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-contact.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/unicon-extensions/unicon-extensions.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-ribbon.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-clients.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-team.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unicon-extensions/inc/widget-service.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: clients, team members, widget, widgets

unicon-extensions/unicon-extensions.php 92% from 13 tests

The main PHP file in "Unicon extensions" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected7,168 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
XML2164325,361
PHP83661391,645
JavaScript16626126
CSS18336

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity47.17
▷ Minimum class complexity13.00
▷ Maximum class complexity68.00
Average method complexity12.54
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 PNG files occupy 0.42MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/paper-plane.png5.49KB2.55KB▼ 53.58%
images/radio.png6.28KB3.07KB▼ 51.09%
inc/demo/demo2/demo22.png203.35KB72.91KB▼ 64.15%
images/imac.png3.26KB1.84KB▼ 43.59%
images/counter.png16.58KB7.54KB▼ 54.51%