90% elrist

Code Review | ELRist

WordPress plugin ELRist scored 90% from 54 tests.

About plugin

  • Plugin page: elrist
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2021
  • Latest release: Aug 26, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: re.ardestani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 287 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: ▼5.08ms] Passed 4 tests

Analyzing server-side resources used by ELRist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.02 ▼1.17
Dashboard /wp-admin3.33 ▲0.0247.13 ▼1.69
Posts /wp-admin/edit.php3.38 ▲0.0249.78 ▲4.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.31 ▼15.24
Media Library /wp-admin/upload.php3.25 ▲0.0234.07 ▼2.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ELRist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.72 ▼0.641.67 ▼0.2244.00 ▼1.35
Dashboard /wp-admin2,206 ▲154.86 ▲0.03108.20 ▲9.9041.87 ▲2.62
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.1542.68 ▼0.2534.98 ▲0.17
Add New Post /wp-admin/post-new.php1,542 ▼118.71 ▲0.18597.59 ▼22.7158.67 ▼6.92
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0394.39 ▼7.5842.13 ▼3.43

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === elrist === )
You can take inspiration from this readme.txt

elrist/elrist.php Passed 13 tests

The primary PHP file in "ELRist" version 1.0.0 is used by WordPress to initiate all plugin functionality
37 characters long description:
Empower Elementor with more features.

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
Everything looks great! No dangerous files found in this plugin282 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP793158282

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.17
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3085.71%
▷ Protected methods514.29%
▷ 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
No PNG images were found in this plugin