89% breaking-news-wp

Code Review | Breaking News WP

WordPress plugin Breaking News WP scored89%from 54 tests.

About plugin

  • Plugin page: breaking-news-wp
  • Plugin version: 1.3
  • PHP compatiblity: 7.1.16+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2018
  • Latest release: Jul 29, 2019
  • Number of updates: 23
  • Update frequency: every 13.4 days
  • Top authors: doctorwp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /11,172 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by Breaking News WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.82 ▼1.75
Dashboard /wp-admin3.39 ▲0.0549.73 ▼11.17
Posts /wp-admin/edit.php3.51 ▲0.1553.91 ▲3.83
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.95 ▼6.56
Media Library /wp-admin/upload.php3.32 ▲0.0938.15 ▲1.08

Server storage [IO: ▲0.06MB] [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, 19 new options
New WordPress options
brnwp_col_not
brnwp_testo_pers
brnwp_fil_cat
brnwp_dim_barra
can_compress_scripts
brnwp_col_bar_tit
brnwp_title_content
brnwp_col_bar
brnwp_num_not
brnwp_col_link
...

Browser metrics Passed 4 tests

A check of browser resources used by Breaking News WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13113.42 ▼1.247.92 ▲6.2437.04 ▼3.88
Dashboard /wp-admin2,213 ▲365.64 ▲0.0095.56 ▲4.6742.03 ▲1.79
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0342.45 ▲6.3335.49 ▼0.98
Add New Post /wp-admin/post-new.php1,541 ▲1023.00 ▲0.25666.39 ▲17.6651.64 ▼1.58
Media Library /wp-admin/upload.php1,418 ▲184.28 ▲0.0998.27 ▼8.0342.71 ▼7.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 19 options in the database
    • widget_recent-posts
    • brnwp_col_tit
    • brnwp_num_not
    • brnwp_theme
    • can_compress_scripts
    • widget_recent-comments
    • brnwp_title_content
    • brnwp_col_link
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt might help

breaking-news-wp/breaking-news.php 92% from 13 tests

This is the main PHP file of "Breaking News WP" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("breaking-news-wp.php" instead of "breaking-news.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,206 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP38314524
JavaScript452100387
CSS2350215
PO File2384080

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.16
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected