84% opinion-system-note-avis-demo

Code Review | Opinion System note & avis Demo

WordPress plugin Opinion System note & avis Demo scored 84% from 54 tests.

About plugin

  • Plugin page: opinion-system-no...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Jul 13, 2023
  • Number of updates: 17
  • Update frequency: every 25.6 days
  • Top authors: klushep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 881 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.74ms] Passed 4 tests

An overview of server-side resources used by Opinion System note & avis Demo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0240.02 ▼0.76
Dashboard /wp-admin3.32 ▲0.0244.72 ▼4.93
Posts /wp-admin/edit.php3.37 ▲0.0250.66 ▲3.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.09 ▼12.67
Media Library /wp-admin/upload.php3.24 ▲0.0138.93 ▲6.78
Opinion System note avis Demo /wp-admin/options-general.php?page=opinion_system_menu3.2133.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_opinion_system_note_avis_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Opinion System note & avis Demo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.31 ▼1.042.15 ▲0.3739.78 ▼6.87
Dashboard /wp-admin2,212 ▲275.85 ▼0.15102.95 ▲2.7148.96 ▲3.35
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0040.15 ▼0.9346.96 ▲10.77
Add New Post /wp-admin/post-new.php1,519 ▼1023.17 ▲4.85599.23 ▼46.2565.71 ▲9.19
Media Library /wp-admin/upload.php1,397 ▲64.30 ▲0.0899.76 ▼4.7850.58 ▲8.13
Opinion System note avis Demo /wp-admin/options-general.php?page=opinion_system_menu8562.0425.8371.83

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: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_opinion_system_note_avis_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/opinion-system-note-avis-demo/opinion_system_note_avis_plugin_demo.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

opinion-system-note-avis-demo/opinion_system_note_avis_plugin_demo.php 92% from 13 tests

The main PHP script in "Opinion System note & avis Demo" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("opinion-system-note-avis-demo.php" instead of "opinion_system_note_avis_plugin_demo.php")

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
There were no executable files found in this plugin221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS210114
PHP11926107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
smiley_bad.png5.96KB1.48KB▼ 75.13%
smiley_good.png6.04KB1.36KB▼ 77.44%
check.png5.73KB1.37KB▼ 76.05%
icon_com.png6.00KB1.46KB▼ 75.66%
check_black.png6.00KB1.41KB▼ 76.44%