84% fundamine-ask-me-anything-tool-for-websites

Code Review | FundaMine AMA Plugin

WordPress plugin FundaMine AMA Plugin scored84%from 54 tests.

About plugin

  • Plugin page: fundamine-ask-me-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2015
  • Latest release: Dec 20, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: tarkeshwarsingh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.19ms] Passed 4 tests

A check of server-side resources used by FundaMine AMA Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.57 ▼8.31
Dashboard /wp-admin3.31 ▼0.0344.61 ▼12.94
Posts /wp-admin/edit.php3.37 ▲0.0152.57 ▲6.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.72 ▲3.63
Media Library /wp-admin/upload.php3.24 ▲0.0133.89 ▼3.12

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

FundaMine AMA Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.221.57 ▼0.7144.28 ▼0.39
Dashboard /wp-admin2,195 ▲155.61 ▲0.0284.85 ▼2.4938.16 ▼3.22
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0136.64 ▼1.9335.31 ▲3.16
Add New Post /wp-admin/post-new.php1,534 ▲618.31 ▼4.67637.08 ▼42.3373.36 ▲16.43
Media Library /wp-admin/upload.php1,397 ▼34.17 ▲0.0693.83 ▼15.8640.50 ▼7.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 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/fundamine-ask-me-anything-tool-for-websites/basics.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ama, real time comments, ask me anything, qa

fundamine-ask-me-anything-tool-for-websites/basics.php 85% from 13 tests

This is the main PHP file of "FundaMine AMA Plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 216 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fundamine-ask-me-anything-tool-for-websites.php" instead of "basics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111555

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin