90% exs-alphabet

Code Review | ExS Alphabet

WordPress plugin ExS Alphabet scored90%from 54 tests.

About plugin

  • Plugin page: exs-alphabet
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: exstheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.98ms] Passed 4 tests

Server-side resources used by ExS Alphabet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.54 ▼2.86
Dashboard /wp-admin3.44 ▲0.1444.87 ▼1.93
Posts /wp-admin/edit.php3.56 ▲0.2049.15 ▼2.51
Add New Post /wp-admin/post-new.php6.03 ▲0.1493.24 ▲0.15
Media Library /wp-admin/upload.php3.37 ▲0.1338.00 ▼0.60
ExS Alphabet /wp-admin/options-general.php?page=exs-alphabet3.3333.09
Letters /wp-admin/edit-tags.php?taxonomy=letters3.3630.42

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
widget_alphabet-letters
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by ExS Alphabet
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.48 ▲0.101.65 ▼0.1638.28 ▼3.03
Dashboard /wp-admin2,214 ▲264.86 ▼0.04110.42 ▲0.4140.55 ▼3.41
Posts /wp-admin/edit.php2,142 ▲502.01 ▼0.0540.68 ▲0.1036.55 ▲0.82
Add New Post /wp-admin/post-new.php1,534 ▲1518.23 ▼4.96610.20 ▼0.8354.15 ▼4.03
Media Library /wp-admin/upload.php1,399 ▲174.23 ▲0.0397.30 ▼1.9242.84 ▼1.30
ExS Alphabet /wp-admin/options-general.php?page=exs-alphabet8972.0322.9125.95
Letters /wp-admin/edit-tags.php?taxonomy=letters1,2422.1328.6730.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_alphabet-letters
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: gdpr, popup, gdpr message

exs-alphabet/exs-alhpabet.php 92% from 13 tests

Analyzing the main PHP file in "ExS Alphabet" version 0.0.1
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("exs-alphabet.php" instead of "exs-alhpabet.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
There were no executable files found in this plugin738 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47062730
CSS1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions42
▷ Named functions42100.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