78% align-text-edge

Code Review | Align Text Edge

WordPress plugin Align Text Edge scored 78% from 53 tests.

About plugin

  • Plugin page: align-text-edge
  • Plugin version: 0.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.8.0
  • WordPress version: 5.8.1
  • First release: May 3, 2017
  • Latest release: May 3, 2017
  • Number of updates: 5
  • Update frequency: every 10.6 days
  • Top authors: saimeishi2 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 613 total downloads


Plugin footprint 83% from 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: ▼1.08MB] [CPU: ▼295.28ms] Passed 4 tests

This is a short check of server-side resources used by Align Text Edge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.52 ▼0.3116.75 ▼16.48
Dashboard /wp-admin2.57 ▼0.4814.89 ▼26.55
Posts /wp-admin/edit.php2.57 ▼0.5315.40 ▼28.54
Add New Post /wp-admin/post-new.php2.57 ▼2.8616.40 ▼1,104.30
Media Library /wp-admin/upload.php2.57 ▼0.4415.79 ▼21.72
Align Text Edge /wp-admin/options-general.php?page=align_text_edge2.5719.13

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Align Text Edge
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲16116.62 ▲1.1212.49 ▲3.2150.82 ▲3.39
Dashboard /wp-admin2,940 ▲876.10 ▲0.23132.02 ▼2.3194.21 ▼5.64
Posts /wp-admin/edit.php2,713 ▲72.70 ▲0.0163.97 ▼0.1493.85 ▼3.65
Add New Post /wp-admin/post-new.php1,593 ▼26021.69 ▲2.58258.96 ▼117.70100.97 ▼6.71
Media Library /wp-admin/upload.php1,776 ▲45.03 ▲0.00138.37 ▼19.77101.54 ▼6.55
Align Text Edge /wp-admin/options-general.php?page=align_text_edge1,1382.0954.3376.13

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
    • > Notice in wp-content/plugins/align-text-edge/align-text-edge.php+81
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=align_text_edge
    • > Notice in wp-content/plugins/align-text-edge/align-text-edge.php+403
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/align-text-edge/align-text-edge.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Screenshots: Add descriptions for screenshots #5, #6 in align-text-edge/assets to your readme.txt
The official readme.txt might help

align-text-edge/align-text-edge.php Passed 13 tests

This is the main PHP file of "Align Text Edge" version 0.9.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Align heading text and description text by transparent image.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin505 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File1152442

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
32 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screen_shot/exsample_1_display.png18.40KB6.45KB▼ 64.96%