94% abbreviations

Code Review | Abbreviations

WordPress plugin Abbreviations scored 94% from 54 tests.

About plugin

  • Plugin page: abbreviations
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.2
  • WordPress version: 5.9.2
  • First release: Feb 28, 2022
  • Latest release: Mar 11, 2022
  • Number of updates: 11
  • Update frequency: every 1.4 days
  • Top authors: dvershinin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼287.71ms] Passed 4 tests

An overview of server-side resources used by Abbreviations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.89 ▲3.25
Dashboard /wp-admin3.45 ▲0.0434.49 ▼5.42
Posts /wp-admin/edit.php3.68 ▲0.04103.38 ▲63.63
Add New Post /wp-admin/post-new.php6.91 ▼0.0699.05 ▼1,149.44
Media Library /wp-admin/upload.php3.33 ▲0.0325.02 ▲0.79
Abbreviations /wp-admin/options-general.php?page=abbreviations3.3023.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Abbreviations: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲4616.01 ▲0.305.89 ▼0.592.21 ▼0.05
Dashboard /wp-admin2,893 ▲436.21 ▼0.03115.45 ▼58.20169.42 ▼1.71
Posts /wp-admin/edit.php2,693 ▲53.23 ▼0.0063.39 ▼16.80148.88 ▼60.13
Add New Post /wp-admin/post-new.php1,664 ▲315.56 ▼1.00412.75 ▼32.37164.66 ▼0.81
Media Library /wp-admin/upload.php1,700 ▲115.51 ▼0.04147.14 ▲3.20226.35 ▼12.42
Abbreviations /wp-admin/options-general.php?page=abbreviations1,0672.4292.09168.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/abbreviations/abbreviations.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: wordpress, plugin, seo, abbreviation

abbreviations/abbreviations.php Passed 13 tests

Analyzing the main PHP file in "Abbreviations" version 1.4
80 characters long description:
Wrap abbreviations for search engine optimization and support other applications

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1816119

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin