84% wp-to-alexa-flash-briefing

Code Review | WP to Alexa Flash Briefing

WordPress plugin WP to Alexa Flash Briefing scored84%from 54 tests.

About plugin

  • Plugin page: wp-to-alexa-flash...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Nov 15, 2019
  • Number of updates: 4
  • Update frequency: every 80.8 days
  • Top authors: ko31 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /736 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.55MB] [CPU: ▼21.19ms] Passed 4 tests

Server-side resources used by WP to Alexa Flash Briefing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1239.32 ▼3.26
Dashboard /wp-admin3.44 ▲0.1345.57 ▼3.93
Posts /wp-admin/edit.php3.55 ▲0.1949.18 ▲6.90
Add New Post /wp-admin/post-new.php3.31 ▼2.5837.61 ▼79.76
Media Library /wp-admin/upload.php3.36 ▲0.1338.57 ▲2.20
All Briefings /wp-admin/edit.php?post_type=w2afb_briefing3.4034.50
Add New /wp-admin/post-new.php?post_type=w2afb_briefing3.3132.83
Category /wp-admin/edit-tags.php?taxonomy=w2afb_briefing_cat&post_type=w2afb_briefing3.3534.03

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP to Alexa Flash Briefing: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.29 ▼1.011.83 ▲0.0340.58 ▼3.04
Dashboard /wp-admin2,241 ▲495.87 ▲0.92102.89 ▼6.3641.30 ▼2.69
Posts /wp-admin/edit.php2,124 ▲352.01 ▼0.0241.70 ▼1.6135.57 ▼0.71
Add New Post /wp-admin/post-new.php1,562 ▲3423.37 ▲4.82656.27 ▲28.9053.99 ▲4.18
Media Library /wp-admin/upload.php1,420 ▲354.27 ▲0.0395.32 ▼4.1340.34 ▼3.59
All Briefings /wp-admin/edit.php?post_type=w2afb_briefing1,0971.9330.6130.82
Add New /wp-admin/post-new.php?post_type=w2afb_briefing6,18824.17865.2427.63
WP to Alexa Flash Briefing /wp-admin/options-general.php?page=WP to Alexa Flash Briefing8042.0324.5634.64
Category /wp-admin/edit-tags.php?taxonomy=w2afb_briefing_cat&post_type=w2afb_briefing1,2942.1426.5428.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=w2afb_briefing
    • > User notice in wp-includes/functions.php+5905
    Function register_rest_route was called incorrectly. The REST API route definition for w2afb/v1/briefings is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #0, #0 in wp-to-alexa-flash-briefing/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #1 (A custom post type 'Briefing' for creating feeds is provided), #2 (Provide endpoint URL for registering Alexa flash briefing skill.)
You can look at the official readme.txt

wp-to-alexa-flash-briefing/wp-to-alexa-flash-briefing.php Passed 13 tests

This is the main PHP file of "WP to Alexa Flash Briefing" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
This is a plugin to create a feed of Alexa flash briefing skill in WordPress.

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
No dangerous file extensions were detected519 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10113187518
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.40
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.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
No PNG files were detected