94% abbr-hint-content

Code Review | ABBR Hint Content

WordPress plugin ABBR Hint Content scored 94% from 54 tests.

About plugin

  • Plugin page: abbr-hint-content
  • Plugin version: 0.7.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.9.2
  • First release: Mar 11, 2020
  • Latest release: Mar 12, 2020
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: anthem0n (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 264 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼294.66ms] Passed 4 tests

A check of server-side resources used by ABBR Hint Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0352.21 ▲0.22
Dashboard /wp-admin3.44 ▲0.0333.07 ▼0.40
Posts /wp-admin/edit.php3.66 ▲0.0341.48 ▲2.77
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.12 ▼1,174.89
Media Library /wp-admin/upload.php3.32 ▲0.0222.86 ▼3.57
All Hints /wp-admin/edit.php?post_type=hint3.3624.98

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABBR Hint Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲4115.80 ▲0.136.13 ▼7.542.35 ▼0.44
Dashboard /wp-admin2,898 ▲376.14 ▼0.04116.95 ▼16.00157.22 ▼1.65
Posts /wp-admin/edit.php2,700 ▲153.24 ▼0.0068.11 ▲4.24144.72 ▲1.32
Add New Post /wp-admin/post-new.php1,667 ▼4415.93 ▼4.89396.46 ▼28.21151.83 ▼6.71
Media Library /wp-admin/upload.php1,707 ▲65.52 ▲0.01128.95 ▼8.33188.64 ▼0.06
All Hints /wp-admin/edit.php?post_type=hint1,3702.9558.14108.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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
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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/abbr-hint-content/abbr-hint.php
    • > /wp-content/plugins/abbr-hint-content/inc/loader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: abbr, rcag, opquast, a11y, accessibility...

abbr-hint-content/abbr-hint.php 92% from 13 tests

The main file in "ABBR Hint Content" v. 0.7.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("abbr-hint-content.php" instead of "abbr-hint.php")

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
Success! There were no dangerous files found in this plugin132 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23335100
Markdown121032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected