83% simple-tracker-for-profitwell

Code Review | Simple tracker for Profitwell

WordPress plugin Simple tracker for Profitwell scored83%from 54 tests.

About plugin

  • Plugin page: simple-tracker-fo...
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2021
  • Latest release: Feb 17, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: megumithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.91ms] Passed 4 tests

Analyzing server-side resources used by Simple tracker for Profitwell
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.95 ▲3.00
Dashboard /wp-admin3.33 ▲0.0251.47 ▼2.83
Posts /wp-admin/edit.php3.38 ▲0.0254.67 ▼0.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.14 ▼5.98
Media Library /wp-admin/upload.php3.25 ▲0.0236.69 ▲1.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple tracker for Profitwell
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲713.23 ▼1.065.44 ▲3.3946.84 ▲1.59
Dashboard /wp-admin2,195 ▲155.51 ▼0.1591.18 ▼3.1739.94 ▼1.71
Posts /wp-admin/edit.php2,100 ▼02.11 ▲0.1439.26 ▲0.7536.61 ▼1.68
Add New Post /wp-admin/post-new.php1,535 ▼018.26 ▲0.07660.52 ▼10.1366.97 ▼2.12
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.01100.54 ▼11.9145.32 ▼4.06

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
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-tracker-for-profitwell/profitwel-extensions.php:16

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: The official readme.txt is a good inspiration

simple-tracker-for-profitwell/profitwel-extensions.php 85% from 13 tests

The main file in "Simple tracker for Profitwell" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-tracker-for-profitwell.php" instead of "profitwel-extensions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111167
JSON10020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin