78% status-page-for-runscope

Code Review | Status Page for Runscope

WordPress plugin Status Page for Runscope scored78%from 54 tests.

About plugin

  • Plugin page: status-page-for-r...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.3
  • WordPress version: 6.3.1
  • First release: May 7, 2016
  • Latest release: May 7, 2016
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: yllus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.88ms] Passed 4 tests

A check of server-side resources used by Status Page for Runscope
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0646.41 ▲0.28
Dashboard /wp-admin3.39 ▲0.0551.86 ▼0.78
Posts /wp-admin/edit.php3.51 ▲0.1149.51 ▼2.95
Add New Post /wp-admin/post-new.php5.98 ▲0.0586.58 ▼8.05
Media Library /wp-admin/upload.php3.32 ▲0.0544.07 ▲7.64

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Status Page for Runscope
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.80 ▲0.1443.71 ▲6.08
Dashboard /wp-admin2,192 ▲155.48 ▼0.0584.93 ▼6.4137.54 ▼1.12
Posts /wp-admin/edit.php2,103 ▼01.95 ▼0.0635.91 ▲0.3032.12 ▼4.55
Add New Post /wp-admin/post-new.php1,535 ▲725.08 ▲1.98690.25 ▲75.7270.45 ▲22.51
Media Library /wp-admin/upload.php1,394 ▼64.14 ▼0.0598.43 ▲0.7443.31 ▲4.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/status-page-for-runscope/partials/partial.test-result.php
    • > /wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/status-page-for-runscope/page-RUNSCOPESTATUS.php:2
    • > PHP Notice
      Undefined variable: arr_bucket_status in wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php on line 5
    • > PHP Notice
      Trying to get property 'test_name' of non-object in wp-content/plugins/status-page-for-runscope/partials/partial.test-result.php on line 18
    • > PHP Notice
      Undefined variable: arr_bucket_status in wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php on line 5
    • > PHP Notice
      Trying to get property 'assertions_failed' of non-object in wp-content/plugins/status-page-for-runscope/partials/partial.test-result.php on line 6
    • > PHP Notice
      Trying to get property 'name' of non-object in wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php on line 2
    • > PHP Notice
      Trying to get property 'data' of non-object in wp-content/plugins/status-page-for-runscope/partials/partial.test-result.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/status-page-for-runscope/partials/partial.bucket-details.php on line 6

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: No tags were detected
  • Screenshots: These screenshots do not have images: #1 (The settings metabox for Status Page for Runscope allows you to enter a Runscope API **Access Token** and **Bucket Key**, which will direct the Page being), #2 (A sample of what the Status Page for Runscope appears like: A list of each Test and their pass/fail state, and a summary box at the top with the overall)
You can look at the official readme.txt

status-page-for-runscope/runscope-status.php 92% from 13 tests

"Status Page for Runscope" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("status-page-for-runscope.php" instead of "runscope-status.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
There were no executable files found in this plugin625 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP49563312
CSS13522308
JavaScript2065

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods964.29%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-2.png106.10KB36.48KB▼ 65.62%
images/screenshot-1.png75.17KB25.83KB▼ 65.64%