79% oheso-version-report

Code Review | Oheso Version Report

WordPress plugin Oheso Version Report scored79%from 54 tests.

About plugin

  • Plugin page: oheso-version-report
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 23, 2019
  • Latest release: Jan 29, 2019
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: ohesotori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /681 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.84ms] Passed 4 tests

A check of server-side resources used by Oheso Version Report
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.77 ▲0.79
Dashboard /wp-admin3.32 ▲0.0150.87 ▼2.36
Posts /wp-admin/edit.php3.37 ▲0.0148.89 ▼8.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.61 ▼18.08
Media Library /wp-admin/upload.php3.25 ▲0.0137.33 ▼2.69
Version Report /wp-admin/options-general.php?page=versionreport3.2432.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Oheso Version Report
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.091.88 ▲0.2144.20 ▲4.86
Dashboard /wp-admin2,202 ▲225.64 ▼0.0190.75 ▲1.4441.38 ▼2.38
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0236.64 ▼5.2134.51 ▼2.48
Add New Post /wp-admin/post-new.php1,529 ▼823.24 ▲5.03671.27 ▼1.0172.91 ▼8.25
Media Library /wp-admin/upload.php1,407 ▲104.21 ▲0.02105.02 ▲3.3449.48 ▲5.46
Version Report /wp-admin/options-general.php?page=versionreport7892.0325.5622.55

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/oheso-version-report/theme/oheso-version-report_template.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oheso\\is_admin() in wp-content/plugins/oheso-version-report/oheso-version-report.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/oheso-version-report/template.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/oheso-version-report/uninstall.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: themes, report, version, plugins

oheso-version-report/oheso-version-report.php Passed 13 tests

The main file in "Oheso Version Report" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Display update guidance, version of plug-in and date of update collectively.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected471 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP86235445
CSS12026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity3.40
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png115.97KB44.51KB▼ 61.62%