90% mutual-funds-data

Code Review | Mutual Funds Data

WordPress plugin Mutual Funds Data scored90%from 54 tests.

About plugin

  • Plugin page: mutual-funds-data
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Dec 18, 2018
  • Number of updates: 13
  • Update frequency: every 3.9 days
  • Top authors: mutualfunddata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,356 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.76ms] Passed 4 tests

Server-side resources used by Mutual Funds Data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.65 ▼0.70
Dashboard /wp-admin3.39 ▲0.0945.44 ▼2.32
Posts /wp-admin/edit.php3.50 ▲0.1548.53 ▼0.60
Add New Post /wp-admin/post-new.php5.99 ▲0.1196.86 ▲11.51
Media Library /wp-admin/upload.php3.31 ▲0.0937.42 ▲6.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Mutual Funds Data
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15713.57 ▼0.814.78 ▲3.1641.81 ▼5.34
Dashboard /wp-admin2,226 ▲354.86 ▼0.01110.10 ▲12.0141.70 ▲0.11
Posts /wp-admin/edit.php2,109 ▲172.01 ▼0.0140.54 ▲4.0033.39 ▼0.57
Add New Post /wp-admin/post-new.php1,531 ▲1723.27 ▲5.75668.76 ▼43.0060.04 ▲6.22
Media Library /wp-admin/upload.php1,402 ▲174.20 ▲0.0798.32 ▼8.4644.29 ▼3.26

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: investing, mutual funds, stock market

mutual-funds-data/mutual-funds-data.php Passed 13 tests

The entry point to "Mutual Funds Data" version 1.2.1 is a PHP file that has certain tags in its header comment area
106 characters long description:
Mutual Funds Data plugin allows you to create a comparision table of Indian Mutual Funds with latest data.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin953 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5147207542
CSS2139245
JavaScript31358166

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/js/img/mfd-tinymce-btn.png0.41KB0.36KB▼ 12.71%