89% microlink-wp

Code Review | Microlink

WordPress plugin Microlink scored89%from 54 tests.

About plugin

  • Plugin page: microlink-wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0+
  • WordPress version: 6.3.1
  • First release: Jul 12, 2018
  • Latest release: Jul 12, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jontorrado (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 total downloads

Benchmarks

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.41ms] Passed 4 tests

Server-side resources used by Microlink
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.13 ▼1.04
Dashboard /wp-admin3.37 ▲0.0746.03 ▼18.84
Posts /wp-admin/edit.php3.49 ▲0.1353.86 ▲1.75
Add New Post /wp-admin/post-new.php5.97 ▲0.0993.98 ▼7.49
Media Library /wp-admin/upload.php3.30 ▲0.0743.74 ▲2.17
Microlink /wp-admin/options-general.php?page=microlink-settings3.2635.44

Server storage [IO: ▲0.05MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Microlink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲17415.08 ▲0.8310.41 ▲8.2744.47 ▲2.89
Dashboard /wp-admin2,225 ▲465.85 ▼0.17102.86 ▼15.9040.34 ▼5.43
Posts /wp-admin/edit.php2,105 ▲162.74 ▲0.7444.49 ▲8.9235.19 ▼1.84
Add New Post /wp-admin/post-new.php1,529 ▼623.84 ▲0.72683.76 ▲1.6939.45 ▼13.00
Media Library /wp-admin/upload.php1,401 ▲105.08 ▲0.95115.86 ▲2.8147.03 ▼2.40
Microlink /wp-admin/options-general.php?page=microlink-settings8212.3329.0428.44

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No plugin tags provided

microlink-wp/microlink.php 85% from 13 tests

The primary PHP file in "Microlink" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("microlink-wp.php" instead of "microlink.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin482 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11130541243
JavaScript2200212
JSON10027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.38
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/card-normal.png0.59KB0.21KB▼ 64.13%
admin/images/card-large.png1.42KB0.54KB▼ 62.28%