84% abbreviations

Code Review | Abbreviations

WordPress plugin Abbreviations scored84%from 54 tests.

About plugin

  • Plugin page: abbreviations
  • Plugin version: 1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2022
  • Latest release: Oct 13, 2023
  • Number of updates: 28
  • Update frequency: every 21.3 days
  • Top authors: dvershinin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /946 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Abbreviations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.21 ▲3.19
Dashboard /wp-admin3.32 ▼0.0250.09 ▼15.04
Posts /wp-admin/edit.php3.37 ▲0.0246.93 ▼2.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.98 ▼19.51
Media Library /wp-admin/upload.php3.25 ▲0.0236.83 ▲2.73
Abbreviations /wp-admin/options-general.php?page=abbreviations3.2133.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Abbreviations
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.011.76 ▼0.6043.13 ▼2.81
Dashboard /wp-admin2,199 ▲225.59 ▼0.0784.20 ▼6.5138.76 ▼4.72
Posts /wp-admin/edit.php2,101 ▲11.96 ▼0.0335.77 ▼3.9532.25 ▼3.23
Add New Post /wp-admin/post-new.php1,529 ▲323.17 ▼0.50682.59 ▲57.6568.27 ▲12.85
Media Library /wp-admin/upload.php1,401 ▲14.25 ▲0.04102.10 ▼4.6746.86 ▲3.56
Abbreviations /wp-admin/options-general.php?page=abbreviations8452.0023.5831.81

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | This is a shallow check for browser errors
Everything seems fine on the user side

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: seo, plugin, wordpress, abbreviation

abbreviations/abbreviations.php Passed 13 tests

"Abbreviations" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1815119

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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