83% xenome-poll

Code Review | Xenome (poll)

WordPress plugin Xenome (poll) scored83%from 54 tests.

About plugin

  • Plugin page: xenome-poll
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2022
  • Latest release: Aug 10, 2022
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: xenomeapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /469 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.02MB] [CPU: ▲1.50ms] Passed 4 tests

Server-side resources used by Xenome (poll)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.68 ▲7.11
Dashboard /wp-admin3.33 ▲0.0246.90 ▼1.27
Posts /wp-admin/edit.php3.38 ▲0.0245.68 ▼3.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.66 ▲5.94
Media Library /wp-admin/upload.php3.25 ▲0.0237.08 ▲4.73

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

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

Browser metrics Passed 4 tests

Xenome (poll): an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.48 ▲0.241.83 ▼0.1641.71 ▼2.81
Dashboard /wp-admin2,243 ▲555.90 ▲1.03104.87 ▼15.1139.04 ▼3.69
Posts /wp-admin/edit.php2,122 ▲302.02 ▼0.0436.33 ▲0.2234.13 ▲3.20
Add New Post /wp-admin/post-new.php6,376 ▲4,84822.60 ▲4.42891.94 ▲250.2859.44 ▲2.71
Media Library /wp-admin/upload.php1,421 ▲334.23 ▼0.0194.60 ▼8.5845.57 ▲1.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xenome-poll/xenome.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === Xenome (poll) === )
Please take inspiration from this readme.txt

xenome-poll/xenome.php 69% from 13 tests

The primary PHP file in "Xenome (poll)" version 0.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("xenome-poll.php" instead of "xenome.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.9")
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin12,984 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON40012,183
JavaScript7160264657
Sass29066
CSS22961
PHP252216
Markdown1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin