79% quick-drafts-access

Code Review | Quick Drafts Access

WordPress plugin Quick Drafts Access scored79%from 54 tests.

About plugin

  • Plugin page: quick-drafts-access
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2010
  • Latest release: Aug 22, 2023
  • Number of updates: 24
  • Update frequency: every 197.4 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /16,330 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Quick Drafts Access
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.36 ▼3.52
Dashboard /wp-admin3.34 ▼0.0149.10 ▼18.29
Posts /wp-admin/edit.php3.39 ▲0.0349.13 ▼5.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.78 ▼11.51
Media Library /wp-admin/upload.php3.26 ▲0.0343.47 ▲6.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Quick Drafts Access
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.77 ▲0.492.07 ▲0.0942.53 ▲0.96
Dashboard /wp-admin2,202 ▲255.57 ▼0.0485.10 ▼13.6241.40 ▼2.61
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0534.79 ▼2.5535.57 ▼1.42
Add New Post /wp-admin/post-new.php1,529 ▲323.83 ▲0.57676.25 ▼23.5450.95 ▼4.54
Media Library /wp-admin/upload.php1,407 ▲134.12 ▼0.18103.58 ▼30.0848.60 ▼7.90
My Drafts (1) /wp-admin/edit.php?post_type=page&post_status=draft&author=11,9892.0234.9533.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quick-drafts-access/tests/phpunit/bootstrap.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/quick-drafts-access/tests/phpunit/bootstrap.php on line 29
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-drafts-access/tests/phpunit/bootstrap.php on line 29

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
10 plugin tags: admin, page, menu, post, post_type...

quick-drafts-access/quick-drafts-access.php Passed 13 tests

The main file in "Quick Drafts Access" v. 2.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Adds a link to Drafts under the Posts, Pages, and other custom post type sections in the admin menu.

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
Good job! No executable or dangerous file extensions detected553 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4112180267
Markdown4750251
Bourne Shell16221
XML10014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods626.09%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin