84% get-status

Code Review | Get Status

WordPress plugin Get Status scored84%from 54 tests.

About plugin

  • Plugin page: get-status
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Dec 27, 2017
  • Latest release: Dec 27, 2017
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: sanavi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.07ms] Passed 4 tests

An overview of server-side resources used by Get Status
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.95 ▼2.34
Dashboard /wp-admin3.33 ▲0.0357.08 ▲5.00
Posts /wp-admin/edit.php3.38 ▲0.0249.25 ▲3.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.96 ▼0.90
Media Library /wp-admin/upload.php3.25 ▲0.0240.26 ▲4.38
All Status /wp-admin/edit.php?post_type=get_status3.3039.22
Shortcodes /wp-admin/admin.php?page=getstatus_shortcode_callback3.2532.55
Get Status /wp-admin/admin.php?page=get_status3.2432.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Get Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.25 ▼0.141.86 ▼0.1143.74 ▼0.42
Dashboard /wp-admin2,228 ▲515.58 ▼0.0594.69 ▼0.9640.09 ▲0.70
Posts /wp-admin/edit.php2,130 ▲272.02 ▲0.0438.90 ▲2.1034.98 ▼0.77
Add New Post /wp-admin/post-new.php1,551 ▲1623.05 ▲5.04678.86 ▲62.2948.27 ▼19.39
Media Library /wp-admin/upload.php1,427 ▲304.27 ▲0.12104.90 ▲2.3546.66 ▼1.08
All Status /wp-admin/edit.php?post_type=get_status1,1901.9436.9432.34
Shortcodes /wp-admin/admin.php?page=getstatus_shortcode_callback8352.0324.8523.45
Get Status /wp-admin/admin.php?page=get_status7861.9925.4126.96

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Even though no errors were found, 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
Almost there! Just fix the following items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/get-status/getstatus.php:25
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/get-status/inc/shortcode-listing.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/get-status/inc/get-status-page.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/get-status/inc/shortcode-listing.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/get-status/inc/get-status-page.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/get-status/inc/get-status-page.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/get-status/inc/shortcode-listing.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (1. Screenshot-1.jpg), #2 (2. Screenshot-2.jpg)
The official readme.txt might help

get-status/getstatus.php 92% from 13 tests

The primary PHP file in "Get Status" version 0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-status.php" instead of "getstatus.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
No dangerous file extensions were detected158 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32920158

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected