78% omnipress

Code Review | Omnipress

WordPress plugin Omnipress scored78%from 54 tests.

About plugin

  • Plugin page: omnipress
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 11
  • Update frequency: every 39.0 days
  • Top authors: omnipressteam (54.55%)everestthemes (54.55%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,865 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.18MB] [CPU: ▼2.23ms] Passed 4 tests

This is a short check of server-side resources used by Omnipress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2140.12 ▲0.39
Dashboard /wp-admin3.47 ▲0.1748.11 ▼8.33
Posts /wp-admin/edit.php3.53 ▲0.1748.45 ▼1.24
Add New Post /wp-admin/post-new.php6.17 ▲0.2890.37 ▲0.27
Media Library /wp-admin/upload.php3.40 ▲0.1740.28 ▲1.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Omnipress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10914.44 ▲0.141.54 ▼0.5639.00 ▼5.63
Dashboard /wp-admin2,254 ▲695.86 ▼0.01104.14 ▼17.3840.26 ▼4.72
Posts /wp-admin/edit.php2,134 ▲452.06 ▲0.0436.50 ▼2.8141.05 ▲6.22
Add New Post /wp-admin/post-new.php6,252 ▲4,71922.96 ▼0.28964.04 ▲278.9468.36 ▲6.08
Media Library /wp-admin/upload.php1,436 ▲484.18 ▼0.0699.15 ▼19.5642.57 ▼8.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/omnipress/includes/index.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/omnipress/includes/Libraries/importer/parsers.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/omnipress/includes/Libraries/importer/class-wp-import.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/omnipress/assets/blocks/slider/container/public/render.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/omnipress/includes/Libraries/importer/init.php on line 13
    • > PHP Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/omnipress/includes/Libraries/importer/init.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/omnipress/includes/Libraries/importer/init.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/omnipress/includes/Libraries/importer/init.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
4 plugin tags: blocks, demos, block, patterns

omnipress/omnipress.php 92% from 13 tests

The primary PHP file in "Omnipress" version 1.1.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,963 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP389611,2773,752
JSON8001,145
SVG70037
CSS621115
JavaScript140014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity28.27
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes22
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes00.00%
Methods162
▷ Static methods2616.05%
▷ Public methods14589.51%
▷ Protected methods95.56%
▷ Private methods84.94%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin