78% self-management

Code Review | Self-Management

WordPress plugin Self-Management scored78%from 54 tests.

About plugin

  • Plugin page: self-management
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Mar 5, 2013
  • Number of updates: 21
  • Update frequency: every 2.4 days
  • Top authors: Pasich (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,062 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.25MB] [CPU: ▼16.49ms] Passed 4 tests

An overview of server-side resources used by Self-Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0433.81 ▼2.50
Dashboard /wp-admin3.39 ▲0.0848.92 ▼2.58
Posts /wp-admin/edit.php3.44 ▲0.0845.80 ▼3.34
Add New Post /wp-admin/post-new.php4.68 ▼1.2143.83 ▼57.52
Media Library /wp-admin/upload.php3.31 ▲0.0837.87 ▲4.63
Add New Task /wp-admin/post-new.php?post_type=to_do_list3.4152.64
Task /wp-admin/edit.php?post_type=to_do_list3.3545.18
Projects /wp-admin/edit-tags.php?taxonomy=task_project&post_type=to_do_list3.3033.53

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Self-Management
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.80 ▲0.601.79 ▲0.1543.70 ▲3.17
Dashboard /wp-admin2,237 ▲525.85 ▲0.00116.72 ▲12.2836.88 ▼5.74
Posts /wp-admin/edit.php2,117 ▲282.04 ▲0.0334.81 ▼5.8232.02 ▼1.70
Add New Post /wp-admin/post-new.php1,559 ▲2523.04 ▼0.18616.19 ▲32.7048.14 ▼2.18
Media Library /wp-admin/upload.php1,419 ▲314.23 ▼0.0293.57 ▼6.7240.48 ▼0.44
Add New Task /wp-admin/post-new.php?post_type=to_do_list2,7927.69185.3977.62
Task /wp-admin/edit.php?post_type=to_do_list1,1261.9330.8032.28
Projects /wp-admin/edit-tags.php?taxonomy=task_project&post_type=to_do_list1,2932.1426.9328.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=to_do_list
    • > Notice in wp-content/plugins/self-management/includes/self-manage-post-type.php+136
    Undefined variable: checked_urgent

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
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/self-management/task-list-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-management/includes/self-manage-post-type-dev.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/self-management/includes/task-list-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-management/includes/self-manage-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/self-management/self-management.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-management/includes/self-manage-shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-management/includes/self-manage-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-management/includes/self-manage-taxonomy.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-management/includes/self-manage-post-type.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === self-management === )
  • Screenshots: Add images for these screenshots: #1 (This is an opened 'task' page with corresponding information of the task status (active, completed), importance (not important, important) and urgency (not urgent, urgent). You can change these features of the task by clicking icons.), #2 (Here you can see a demonstration of the included [eisenhower_matrix] shortcode into a post. The shortcode creates a table with a list of yout tasks in the Eisenhower matrix manner.)
You can look at the official readme.txt

self-management/self-management.php Passed 13 tests

The entry point to "Self-Management" version 0.2 is a PHP file that has certain tags in its header comment area
77 characters long description:
Plugin for planning in Wordpress. Creates a shortcode with Eisenhower matrix.

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
Everything looks great! No dangerous files found in this plugin7,258 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,5161,4906,564
PHP9235226685
CSS1109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png19.11KB9.53KB▼ 50.12%
screenshot-1.png17.46KB8.11KB▼ 53.56%
images/pas-task.png0.60KB0.59KB▼ 0.82%