84% ubicual

Code Review | UBICUAL

WordPress plugin UBICUAL scored84%from 54 tests.

About plugin

  • Plugin page: ubicual
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: May 14, 2020
  • Number of updates: 20
  • Update frequency: every 88.3 days
  • Top authors: ubicual (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,277 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.62ms] Passed 4 tests

A check of server-side resources used by UBICUAL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.78 ▲1.10
Dashboard /wp-admin3.35 ▲0.0445.94 ▼0.85
Posts /wp-admin/edit.php3.40 ▲0.0442.44 ▼4.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.13 ▼22.23
Media Library /wp-admin/upload.php3.27 ▲0.0436.46 ▲2.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for UBICUAL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.111.74 ▼0.0143.16 ▲1.16
Dashboard /wp-admin2,209 ▲205.91 ▲0.95103.89 ▼5.5542.07 ▼0.18
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0133.02 ▼7.8334.77 ▼0.37
Add New Post /wp-admin/post-new.php1,533 ▼323.46 ▲0.33674.75 ▲71.6651.21 ▼0.48
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.05103.94 ▲2.3847.40 ▲3.50

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_ubicual

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ubicual/ubicual.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: marketing, landing pages, suscriptions

ubicual/ubicual.php Passed 13 tests

This is the main PHP file of "UBICUAL" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Este Plugin permite incrustar formularios de landing pages en su web.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected298 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14126192
JavaScript110363
CSS10043

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png84.78KB34.25KB▼ 59.61%
assets/screenshot-1.png327.36KB130.01KB▼ 60.28%