83% enjaneb

Code Review | enjaneb

WordPress plugin enjaneb scored83%from 54 tests.

About plugin

  • Plugin page: enjaneb
  • Plugin version: 1.1
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2023
  • Latest release: Jan 21, 2023
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: enjaneb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /178 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 successfully, without throwing any errors or notices

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

Server-side resources used by enjaneb
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.59 ▼5.71
Dashboard /wp-admin3.32 ▲0.0246.61 ▼11.21
Posts /wp-admin/edit.php3.37 ▲0.0251.58 ▲1.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.76 ▼20.47
Media Library /wp-admin/upload.php3.25 ▲0.0235.08 ▼0.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by enjaneb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.58 ▲0.231.70 ▲0.0242.49 ▲1.02
Dashboard /wp-admin2,213 ▲395.54 ▼0.0891.34 ▲3.1282.37 ▲40.57
Posts /wp-admin/edit.php2,118 ▲181.99 ▲0.0235.90 ▼5.7533.48 ▼0.93
Add New Post /wp-admin/post-new.php1,558 ▲3023.01 ▼0.00669.49 ▼15.09132.37 ▲80.87
Media Library /wp-admin/upload.php1,412 ▲124.15 ▼0.0394.90 ▼13.6475.62 ▲29.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/enjaneb/enjaneb.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Preview of enjaneb setting page) image not found
Please take inspiration from this readme.txt

enjaneb/enjaneb.php 85% from 13 tests

Analyzing the main PHP file in "enjaneb" version 1.1
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin286 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22524286

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png22.72KB5.37KB▼ 76.37%
screenshot-1.PNG31.16KB15.77KB▼ 49.38%
img/mlogo.png1.28KB0.71KB▼ 44.79%