89% armenian-links-change

Code Review | Armlinks

WordPress plugin Armlinks scored89%from 54 tests.

About plugin

  • Plugin page: armenian-links-ch...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 27, 2018
  • Latest release: Jun 27, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: arevik07 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.90ms] Passed 4 tests

An overview of server-side resources used by Armlinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.21 ▲0.25
Dashboard /wp-admin3.34 ▼0.0150.88 ▼14.12
Posts /wp-admin/edit.php3.39 ▲0.0351.11 ▼2.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.23 ▼17.25
Media Library /wp-admin/upload.php3.26 ▲0.0333.81 ▼5.34
Armenian links settings /wp-admin/options-general.php?page=armlinks3.2231.89

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Armlinks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.251.57 ▼0.9941.06 ▼1.87
Dashboard /wp-admin2,202 ▲225.58 ▼0.0990.81 ▲4.0741.49 ▼1.88
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0334.20 ▼0.2936.24 ▲2.13
Add New Post /wp-admin/post-new.php1,529 ▲122.90 ▼0.31697.34 ▼4.6549.74 ▼5.97
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0498.02 ▼15.3141.34 ▼5.42
Armenian links settings /wp-admin/options-general.php?page=armlinks7982.0023.3929.67

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: armenian, converter, slug

armenian-links-change/armlinks.php 85% from 13 tests

The main PHP file in "Armlinks" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("armenian-links-change.php" instead of "armlinks.php")

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
Good job! No executable or dangerous file extensions detected150 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22925150

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
No PNG files were detected