84% abbr-hint-content

Code Review | ABBR Hint Content

WordPress plugin ABBR Hint Content scored84%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: 6.3.1
  • 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 /474 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: ▼3.37ms] Passed 4 tests

Analyzing server-side resources used by ABBR Hint Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.73 ▼2.41
Dashboard /wp-admin3.33 ▲0.0248.80 ▼1.42
Posts /wp-admin/edit.php3.38 ▲0.0246.20 ▼2.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.86 ▼7.25
Media Library /wp-admin/upload.php3.25 ▲0.0235.69 ▲0.03
All Hints /wp-admin/edit.php?post_type=hint3.2945.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABBR Hint Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3813.95 ▼0.421.70 ▲0.1541.48 ▲3.34
Dashboard /wp-admin2,205 ▲285.63 ▲0.0985.61 ▼16.9137.11 ▼3.47
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0234.39 ▼3.8530.87 ▼7.61
Add New Post /wp-admin/post-new.php1,534 ▼1323.00 ▼1.78621.65 ▲8.1177.18 ▼9.55
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.0198.29 ▲2.1142.65 ▲2.11
All Hints /wp-admin/edit.php?post_type=hint1,0501.9831.5728.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: opquast, abbr, lightweight, acronyms, rcag...

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

The principal PHP file in "ABBR Hint Content" v. 0.7.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! 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

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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
PNG images were not found in this plugin