84% hebrew-maqaf

Code Review | AlefAlefAlef Hebrew Maqaf

WordPress plugin AlefAlefAlef Hebrew Maqaf scored84%from 54 tests.

About plugin

  • Plugin page: hebrew-maqaf
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2019
  • Latest release: Feb 17, 2019
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: kinging (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 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.01MB] [CPU: ▼9.11ms] Passed 4 tests

A check of server-side resources used by AlefAlefAlef Hebrew Maqaf
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.98 ▼2.24
Dashboard /wp-admin3.32 ▼0.0243.51 ▼15.58
Posts /wp-admin/edit.php3.37 ▲0.0245.22 ▼2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.78 ▼16.39
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▼1.28

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for AlefAlefAlef Hebrew Maqaf
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.171.78 ▲0.0840.10 ▲1.34
Dashboard /wp-admin2,198 ▲185.66 ▲0.0686.26 ▼3.5335.65 ▼13.25
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0136.30 ▼2.9833.45 ▼0.47
Add New Post /wp-admin/post-new.php1,538 ▲1018.24 ▼5.02631.03 ▼40.6757.25 ▼10.57
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.0795.82 ▼8.4142.81 ▼1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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/hebrew-maqaf/hebrew-maqaf.php:74

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)
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
3 plugin tags: niqqud, hebrew, typography

hebrew-maqaf/hebrew-maqaf.php Passed 13 tests

The main file in "AlefAlefAlef Hebrew Maqaf" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Adds a Hebrew Maqaf button to the WordPress Editor

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
Success! There were no dangerous files found in this plugin168 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151284
PO File16636
JavaScript14135
SVG10113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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