78% eight-day-week-print-workflow

Code Review | Eight Day Week Print Workflow

WordPress plugin Eight Day Week Print Workflow scored78%from 54 tests.

About plugin

  • Plugin page: eight-day-week-pr...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2015
  • Latest release: Sep 20, 2023
  • Number of updates: 13
  • Update frequency: every 220.8 days
  • Top authors: 10up (46.15%)10upbot (38.46%)joshlevinson (23.08%)jsternberg (15.38%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,210 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
Installer ran successfully

Server metrics [RAM: ▲0.90MB] [CPU: ▲3.77ms] Passed 4 tests

An overview of server-side resources used by Eight Day Week Print Workflow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.40 ▲0.9450.56 ▲10.63
Dashboard /wp-admin4.22 ▲0.8758.08 ▼5.78
Posts /wp-admin/edit.php4.27 ▲0.9151.35 ▼0.21
Add New Post /wp-admin/post-new.php6.81 ▲0.92109.62 ▲10.44
Media Library /wp-admin/upload.php4.14 ▲0.9148.09 ▲11.67
Dummy Submenu /wp-admin/edit.php?post_type=print-issue&page=removeme3.9534.43

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

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

Browser metrics Passed 4 tests

Eight Day Week Print Workflow: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8214.28 ▼0.121.72 ▲0.2244.03 ▲7.17
Dashboard /wp-admin2,237 ▲695.65 ▼0.0493.12 ▼4.4241.96 ▼4.34
Posts /wp-admin/edit.php2,136 ▲362.01 ▼0.0336.14 ▲2.6733.07 ▼3.91
Add New Post /wp-admin/post-new.php1,558 ▲3223.53 ▲0.44649.47 ▼14.4449.83 ▼21.10
Media Library /wp-admin/upload.php1,436 ▲394.20 ▼0.0197.21 ▼16.7941.33 ▼5.21
Dummy Submenu /wp-admin/edit.php?post_type=print-issue&page=removeme280.420.104.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • edw_activated

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Eight_Day_Week\\Plugins\\add_filter() in wp-content/plugins/eight-day-week-print-workflow/plugins.php:24
    • > 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/eight-day-week-print-workflow/includes/functions/articles.php on line 90
    • > 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/eight-day-week-print-workflow/includes/functions/articles.php on line 90
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Eight_Day_Week\\Plugins\\add_filter() in wp-content/plugins/eight-day-week-print-workflow/plugins.php:24
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/eight-day-week-print-workflow/includes/functions/articles.php on line 90

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=print-issue&page=removeme
    • > Network (severe)
    wp-admin/edit.php?post_type=print-issue&page=removeme - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: print, editorial, workflow

eight-day-week-print-workflow/eight-day-week.php 92% from 13 tests

The main file in "Eight Day Week Print Workflow" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("eight-day-week-print-workflow.php" instead of "eight-day-week.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,372 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP187731,8442,640
JavaScript33381471,495
Sass2307141
CSS229896

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.50
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces16
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods57
▷ Static methods610.53%
▷ Public methods5596.49%
▷ Protected methods00.00%
▷ Private methods23.51%
Functions173
▷ Named functions16092.49%
▷ Anonymous functions137.51%
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
No PNG images were found in this plugin