84% wp-alexa-flash-briefing

Code Review | WP Alexa Flash Briefing

WordPress plugin WP Alexa Flash Briefing scored 84% from 54 tests.

About plugin

  • Plugin page: wp-alexa-flash-br...
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 5.8.1
  • First release: Dec 2, 2018
  • Latest release: Mar 13, 2019
  • Number of updates: 17
  • Update frequency: every 10.2 days
  • Top authors: andrewfitz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,357 total downloads


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.61MB] [CPU: ▼157.79ms] Passed 4 tests

Analyzing server-side resources used by WP Alexa Flash Briefing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0439.10 ▲11.40
Dashboard /wp-admin3.11 ▲0.0552.22 ▲4.06
Posts /wp-admin/edit.php3.16 ▲0.0546.08 ▼0.36
Add New Post /wp-admin/post-new.php2.89 ▼2.5521.94 ▼633.40
Media Library /wp-admin/upload.php3.05 ▲0.0432.69 ▼1.47
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=briefing3.0438.59
All Briefings /wp-admin/edit.php?post_type=briefing3.1033.00
Add New /wp-admin/post-new.php?post_type=briefing2.8924.96

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for WP Alexa Flash Briefing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,747 ▲15115.85 ▲0.378.70 ▲0.2552.06 ▲2.05
Dashboard /wp-admin3,013 ▲825.90 ▼0.02138.15 ▼7.98119.84 ▲3.81
Posts /wp-admin/edit.php2,779 ▲432.70 ▲0.0168.84 ▲1.9895.51 ▼5.36
Add New Post /wp-admin/post-new.php1,709 ▲2618.80 ▼0.04387.21 ▼16.72119.16 ▲4.53
Media Library /wp-admin/upload.php1,847 ▲405.04 ▲0.03153.89 ▲1.43128.54 ▲1.08
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=briefing1,9502.5267.5189.34
All Briefings /wp-admin/edit.php?post_type=briefing1,5142.6269.5887.84
Add New /wp-admin/post-new.php?post_type=briefing5,68816.69456.28120.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • category_children

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=briefing
    • > User notice in wp-includes/functions.php+5663
    register_rest_route was called incorrectly. The REST API route definition for alexa-fb/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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: voice, amazon, alexa, flash briefing

wp-alexa-flash-briefing/wp-alexa-flash-briefing.php 92% from 13 tests

The main PHP file in "WP Alexa Flash Briefing" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions375.00%
▷ Anonymous functions125.00%
▷ Global constants1100.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
There are no PNG files in this plugin