68% writing-project-tracker

Code Review | Writing Project Tracker

WordPress plugin Writing Project Tracker scored68%from 54 tests.

About plugin

  • Plugin page: writing-project-t...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2020
  • Latest release: Mar 31, 2020
  • Number of updates: 5
  • Update frequency: every 4.8 days
  • Top authors: oxsteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /412 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.64MB] [CPU: ▼57.85ms] Passed 4 tests

Analyzing server-side resources used by Writing Project Tracker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.36 ▼1.117.13 ▼35.94
Dashboard /wp-admin2.38 ▼0.977.18 ▼56.19
Posts /wp-admin/edit.php2.38 ▼0.988.53 ▼37.75
Add New Post /wp-admin/post-new.php2.38 ▼3.516.67 ▼101.53
Media Library /wp-admin/upload.php2.38 ▼0.858.45 ▼29.43
Add New /wp-admin/post-new.php?post_type=wtpjtr_project2.387.30
Logs /wp-admin/edit.php?post_type=wtpjtr_project&page=wtpjtr_logs2.388.70
All Projects /wp-admin/edit.php?post_type=wtpjtr_project2.387.14
Project Type /wp-admin/edit-tags.php?taxonomy=wt_item_type&post_type=wtpjtr_project2.387.72

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

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

Browser metrics Passed 4 tests

Writing Project Tracker: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲24014.25 ▼0.106.43 ▲4.5427.85 ▼13.99
Dashboard /wp-admin2,283 ▲955.63 ▲0.71120.55 ▲12.4048.41 ▼0.38
Posts /wp-admin/edit.php3,984 ▲1,8952.92 ▲0.9169.25 ▲29.8754.19 ▲13.89
Add New Post /wp-admin/post-new.php1,739 ▲21123.23 ▼0.19684.53 ▲2.3642.53 ▼22.54
Media Library /wp-admin/upload.php1,462 ▲714.84 ▲0.69102.81 ▼4.8148.96 ▲1.86
Add New /wp-admin/post-new.php?post_type=wtpjtr_project2,9717.90218.4982.91
Logs /wp-admin/edit.php?post_type=wtpjtr_project&page=wtpjtr_logs7,1474.2791.4637.83
All Projects /wp-admin/edit.php?post_type=wtpjtr_project1,1912.3739.0551.75
Project Type /wp-admin/edit-tags.php?taxonomy=wt_item_type&post_type=wtpjtr_project1,3442.5134.5440.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/writing-project-tracker/includes/shortcode/functions.php+48
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • write_tracke_activated
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wt_item_type&post_type=wtpjtr_project
    • > Deprecated in wp-content/plugins/writing-project-tracker/includes/shortcode/functions.php+48
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Writing_Project_Tracker\\Admin_Interface\\add_action() in wp-content/plugins/writing-project-tracker/includes/interface/admin-interface.php:4

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

writing-project-tracker/writing-project-tracker.php 85% from 13 tests

The principal PHP file in "Writing Project Tracker" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("something")
  • Domain Path: Prefix the domain path with a forward slash character ("/something")

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
There were no executable files found in this plugin27,272 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
CSS101,5506913,751
JavaScript572,6392,76112,685
PHP59725724
LESS118112

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.25
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
Namespaces2
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
colorpicker/img/hue.png2.90KB0.50KB▼ 82.71%
colorpicker/img/alpha.png3.19KB1.68KB▼ 47.45%
colorpicker/img/saturation.png8.61KB5.13KB▼ 40.41%