10% acronyms-2

Code Review | Acronyms 2

WordPress plugin Acronyms 2 scored 10% from 54 tests.

About plugin

  • Plugin page: acronyms-2
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.6.1
  • WordPress version: 5.9.2
  • First release: Oct 17, 2011
  • Latest release: Feb 4, 2021
  • Number of updates: 31
  • Update frequency: every 110.1 days
  • Top authors: renaissancedesign (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 3,437 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/acronyms-2/acronyms.php+386
    file_get_contents(wp-content/themes/twentytwentytwo/header.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.07MB] [CPU: ▼318.00ms] Passed 4 tests

An overview of server-side resources used by Acronyms 2
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0546.64 ▼4.55
Dashboard /wp-admin3.26 ▼0.1418.68 ▼13.80
Posts /wp-admin/edit.php3.26 ▼0.3718.70 ▼17.25
Add New Post /wp-admin/post-new.php3.26 ▼3.7318.25 ▼1,233.82
Media Library /wp-admin/upload.php3.26 ▼0.0316.77 ▼7.12
Acronyms /wp-admin/tools.php?page=acronyms-2/acronyms.php3.2619.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Acronyms 2
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2415.90 ▲0.256.25 ▼1.762.25 ▼0.63
Dashboard /wp-admin2,897 ▲396.12 ▼0.10116.50 ▼20.89152.92 ▼9.22
Posts /wp-admin/edit.php2,690 ▼43.24 ▼0.0063.09 ▲0.84143.65 ▲10.75
Add New Post /wp-admin/post-new.php1,664 ▼4717.49 ▼4.28387.74 ▼66.66158.17 ▼1.16
Media Library /wp-admin/upload.php1,700 ▲25.51 ▲0.04137.13 ▼5.57185.01 ▼0.73
Acronyms /wp-admin/tools.php?page=acronyms-2/acronyms.php2,2492.4559.21126.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5610
    load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
    • > User deprecated in wp-includes/functions.php+5610
    load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
    • > Notice in wp-content/plugins/acronyms-2/acronyms.php+368
    Undefined index: action
    • > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
    • > Notice in wp-content/plugins/acronyms-2/acronyms.php+314
    Undefined index: message
    • > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
    • > Notice in wp-content/plugins/acronyms-2/acronyms.php+347
    Undefined index: s
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
    • > User deprecated in wp-includes/functions.php+5316
    attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
    • > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
    • > Notice in wp-content/plugins/acronyms-2/acronyms.php+454
    Undefined variable: i

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acronyms-2/acronyms.php:652

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The admin UI), #2 (Acronyms output in Twenty Eleven)
You can take inspiration from this readme.txt

acronyms-2/acronyms.php 85% from 13 tests

The main PHP file in "Acronyms 2" ver. 2.0.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acronyms-2.php" instead of "acronyms.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 296 characters long)

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
No dangerous file extensions were detected574 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1192455

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods1493.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.10KB12.01KB▼ 60.10%
screenshot-2.png13.63KB13.25KB▼ 2.78%