84% ath-easy-draftlist-output

Code Review | AthEasyDraftListOutput

WordPress plugin AthEasyDraftListOutput scored84%from 54 tests.

About plugin

  • Plugin page: ath-easy-draftlis...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Sep 25, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Athsear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 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.02MB] [CPU: ▼4.47ms] Passed 4 tests

Analyzing server-side resources used by AthEasyDraftListOutput
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.77 ▲5.52
Dashboard /wp-admin3.32 ▲0.0247.72 ▼0.36
Posts /wp-admin/edit.php3.37 ▲0.0252.88 ▼3.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.18 ▼15.69
Media Library /wp-admin/upload.php3.25 ▲0.0237.97 ▲1.90

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by AthEasyDraftListOutput
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.381.56 ▼0.5646.51 ▲2.57
Dashboard /wp-admin2,195 ▲155.57 ▼0.0887.38 ▼3.5040.69 ▼0.16
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0640.42 ▲3.4437.04 ▲2.43
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▲0.25699.23 ▼8.2357.18 ▼6.31
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0097.89 ▼9.3043.74 ▲1.71

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ath-easy-draftlist-output/athEasyDraftListOutput.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

ath-easy-draftlist-output/athEasyDraftListOutput.php 92% from 13 tests

Analyzing the main PHP file in "AthEasyDraftListOutput" version 1.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ath-easy-draftlist-output.php" instead of "athEasyDraftListOutput.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 plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12714109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods233.33%
▷ Protected methods00.00%
▷ Private methods466.67%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin