78% omnitags

Code Review | Omnitags

WordPress plugin Omnitags scored78%from 54 tests.

About plugin

  • Plugin page: omnitags
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2018
  • Latest release: Aug 22, 2019
  • Number of updates: 9
  • Update frequency: every 66.9 days
  • Top authors: jfrot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /632 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Omnitags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.79 ▲4.02
Dashboard /wp-admin3.31 ▼0.0349.04 ▼21.52
Posts /wp-admin/edit.php3.37 ▲0.0149.61 ▲0.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.60 ▼9.98
Media Library /wp-admin/upload.php3.24 ▲0.0132.91 ▼3.18

Server storage [IO: ▲0.56MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables
wp_omnitags_config
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Omnitags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.24 ▼0.121.77 ▲0.0742.75 ▼0.80
Dashboard /wp-admin2,214 ▲345.65 ▲0.0886.34 ▼6.7336.96 ▼6.08
Posts /wp-admin/edit.php2,116 ▲132.00 ▲0.0234.44 ▼5.8535.67 ▼0.34
Add New Post /wp-admin/post-new.php1,539 ▲1323.48 ▲0.30665.79 ▲9.8060.36 ▲9.63
Media Library /wp-admin/upload.php1,416 ▲194.26 ▲0.1796.47 ▼5.4540.80 ▼4.79

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/omnitags/inc/scripts_wp_print_footer_scripts.inc.php
    • > /wp-content/plugins/omnitags/inc/scripts_wp_head.inc.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'omnitags' not found in wp-content/plugins/omnitags/omnitags_admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/omnitags/omnitags.php:180

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: seo, balises, meta, tags, scripts

omnitags/omnitags.php 92% from 13 tests

The main PHP script in "Omnitags" version 1.2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,940 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS64546,558
JSON200616
PHP54825305
SVG100288
JavaScript45445173

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin