83% traking-goals

Code Review | Traking Goals

WordPress plugin Traking Goals scored 83% from 54 tests.

About plugin

  • Plugin page: traking-goals
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Aug 29, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: lugox22 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 499 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Traking Goals
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.85 ▼6.99
Dashboard /wp-admin3.31 ▲0.0145.22 ▼2.47
Posts /wp-admin/edit.php3.36 ▲0.0144.72 ▼13.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.10 ▼0.54
Media Library /wp-admin/upload.php3.23 ▲0.0033.04 ▼2.81

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Traking Goals
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.31 ▼0.982.12 ▲0.1845.46 ▼5.81
Dashboard /wp-admin2,206 ▲184.88 ▼0.0295.73 ▼16.4537.09 ▼6.08
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0534.51 ▼5.0834.05 ▼2.41
Add New Post /wp-admin/post-new.php1,542 ▲2318.65 ▼4.52603.41 ▼75.0153.12 ▼3.62
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.06123.36 ▲14.0241.22 ▼7.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 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/traking-goals/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === traking-goals === )
  • Screenshots: Please a description for screenshot #0 in traking-goals/assets to your readme.txt
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from) image not found
Please take inspiration from this readme.txt

traking-goals/index.php 85% from 13 tests

Analyzing the main PHP file in "Traking Goals" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("traking-goals.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171147

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin