10% blog-watch

Code Review | Blog Watch

WordPress plugin Blog Watch scored10%from 54 tests.

About plugin

  • Plugin page: blog-watch
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2013
  • Latest release: Jul 21, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: BIOSTALL (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,723 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/blog-watch/blog-watch.php+426
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.85MB] [CPU: ▼55.99ms] Passed 4 tests

A check of server-side resources used by Blog Watch
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.10 ▼32.05
Dashboard /wp-admin2.17 ▼1.185.25 ▼52.12
Posts /wp-admin/edit.php2.17 ▼1.196.00 ▼42.10
Add New Post /wp-admin/post-new.php2.17 ▼3.726.21 ▼97.67
Media Library /wp-admin/upload.php2.17 ▼1.065.47 ▼30.13

Server storage [IO: ▲0.36MB] [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: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
cbw_plugin_settings
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blog Watch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15114.09 ▼0.471.72 ▲0.2043.49 ▲4.92
Dashboard /wp-admin2,288 ▲1085.61 ▲0.0296.45 ▲8.3584.80 ▲41.63
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0437.81 ▲2.7933.63 ▼3.93
Add New Post /wp-admin/post-new.php1,526 ▼223.65 ▲0.63667.83 ▼19.3150.32 ▼0.64
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.07108.01 ▼3.3544.79 ▼5.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/blog-watch/blog-watch.php+426
    Array and string offset access syntax with curly braces is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-watch/blog-watch.php:26

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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (The latest posts from each site combined and in date order)
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

blog-watch/blog-watch.php Passed 13 tests

Analyzing the main PHP file in "Blog Watch" version 1.0.0
117 characters long description:
Keep an eye on what your competitors, similar sites and favourite blogs are writing about, right from your Dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin447 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17254447

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin