83% eyeone

Code Review | EyeOne

WordPress plugin EyeOne scored83%from 54 tests.

About plugin

  • Plugin page: eyeone
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2021
  • Latest release: Jul 26, 2021
  • Number of updates: 3
  • Update frequency: every 46.0 days
  • Top authors: eyeone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 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.11MB] [CPU: ▼6.70ms] Passed 4 tests

An overview of server-side resources used by EyeOne
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0732.35 ▼9.89
Dashboard /wp-admin3.41 ▲0.1054.79 ▼1.26
Posts /wp-admin/edit.php3.52 ▲0.1755.97 ▼0.66
Add New Post /wp-admin/post-new.php6.02 ▲0.1494.90 ▼14.99
Media Library /wp-admin/upload.php3.35 ▲0.1243.11 ▲4.80

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for EyeOne
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.22 ▼0.132.41 ▲0.5037.24 ▼4.53
Dashboard /wp-admin2,239 ▲715.64 ▼0.0289.78 ▼10.7042.68 ▼3.22
Posts /wp-admin/edit.php2,148 ▲482.00 ▲0.0040.74 ▼1.7333.01 ▼5.26
Add New Post /wp-admin/post-new.php6,254 ▲4,72525.89 ▲2.32889.62 ▲302.7753.96 ▲3.64
Media Library /wp-admin/upload.php1,441 ▲414.21 ▲0.03103.59 ▼4.5443.06 ▼1.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/eyeone/admin/partials/eyeone-admin-settings-display.php:8

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

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in eyeone/assets to your readme.txt
You can look at the official readme.txt

eyeone/eyeone-plugin.php 92% from 13 tests

"EyeOne" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eyeone.php" instead of "eyeone-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected814 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP119758574
PO File1280101
CSS115076
JavaScript24137
SVG30226

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.43
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin