68% rankanalyst-content-observer

Code Review | RankAnalyst Content Observer

WordPress plugin RankAnalyst Content Observer scored68%from 54 tests.

About plugin

  • Plugin page: rankanalyst-conte...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.1
  • WordPress version: 6.3.1
  • First release: May 10, 2019
  • Latest release: May 15, 2019
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: sbroschart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼19.10ms] Passed 4 tests

An overview of server-side resources used by RankAnalyst Content Observer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.45 ▼2.50
Dashboard /wp-admin3.32 ▲0.0248.02 ▼2.67
Posts /wp-admin/edit.php3.37 ▲0.0148.62 ▲1.26
Add New Post /wp-admin/post-new.php3.10 ▼2.7835.34 ▼72.47
Media Library /wp-admin/upload.php3.24 ▲0.0137.14 ▲2.35
Recent Modifications /wp-admin/admin.php?page=rankanalyst_co3.2133.65
Configuration /wp-admin/admin.php?page=rankanalyst_co_conf3.1830.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_rankanalyst_changes
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

RankAnalyst Content Observer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.72 ▲0.341.86 ▼0.0238.53 ▼7.84
Dashboard /wp-admin2,224 ▲445.63 ▼0.0789.35 ▼12.9838.94 ▼4.96
Posts /wp-admin/edit.php2,129 ▲321.96 ▼0.0643.00 ▲6.8537.65 ▲2.26
Add New Post /wp-admin/post-new.php1,550 ▲2422.73 ▼0.58679.00 ▼11.6554.74 ▼4.37
Media Library /wp-admin/upload.php1,432 ▲324.10 ▼0.14107.98 ▲12.0346.17 ▲3.95
Recent Modifications /wp-admin/admin.php?page=rankanalyst_co8381.9727.4228.02
Configuration /wp-admin/admin.php?page=rankanalyst_co_conf8642.1221.9423.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_rankanalyst_changes
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rankanalyst_co_conf
    • > Notice in wp-content/plugins/rankanalyst-content-observer/ra-contentobserver.php+107
    Trying to access array offset on value of type bool

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 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=rankanalyst_co
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=rankanalyst_co 153:0 Uncaught TypeError: $ is not a function
    • > GET request to /wp-admin/admin.php?page=rankanalyst_co_conf
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=rankanalyst_co_conf 164:0 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #2, #3 in rankanalyst-content-observer/assets to your readme.txt
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

rankanalyst-content-observer/ra-contentobserver.php 92% from 13 tests

The main PHP script in "RankAnalyst Content Observer" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rankanalyst-content-observer.php" instead of "ra-contentobserver.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin475 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP124647475

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
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
PNG images were not found in this plugin