89% rontar-blog-retargeting

Code Review | Rontar Blog Retargeting

WordPress plugin Rontar Blog Retargeting scored89%from 54 tests.

About plugin

  • Plugin page: rontar-blog-retar...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Oct 16, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: slavav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /633 total downloads

Benchmarks

Plugin footprint 83% 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.10MB] [CPU: ▼11.60ms] Passed 4 tests

This is a short check of server-side resources used by Rontar Blog Retargeting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1133.92 ▼6.06
Dashboard /wp-admin3.42 ▲0.0741.45 ▼20.99
Posts /wp-admin/edit.php3.53 ▲0.1848.72 ▲1.46
Add New Post /wp-admin/post-new.php6.00 ▲0.1177.65 ▼19.09
Media Library /wp-admin/upload.php3.34 ▲0.1136.83 ▼0.27
Rontar Blog Retargeting /wp-admin/edit.php?page=rontar_blog_retargeting3.3128.44

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

Browser metrics Passed 4 tests

Checking browser requirements for Rontar Blog Retargeting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.42 ▲0.221.61 ▼0.1440.05 ▼3.68
Dashboard /wp-admin2,210 ▲255.84 ▼0.06112.00 ▼8.3342.62 ▼2.29
Posts /wp-admin/edit.php2,096 ▲71.97 ▼0.0439.08 ▲2.6333.98 ▼5.33
Add New Post /wp-admin/post-new.php1,545 ▲2418.14 ▼5.18606.34 ▼53.3044.82 ▼1.68
Media Library /wp-admin/upload.php1,392 ▲104.20 ▼0.0297.03 ▼6.6740.32 ▼5.85
Rontar Blog Retargeting /wp-admin/edit.php?page=rontar_blog_retargeting8702.0237.3930.27

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: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • rontar_blog_retargeting_settings
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: remarketing, subscriber base, ads, advertising, retargeting...

rontar-blog-retargeting/main.php 85% from 13 tests

"Rontar Blog Retargeting" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rontar-blog-retargeting.php" instead of "main.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected515 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5124210515

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.24
Average class complexity10.75
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes375.00%
Methods58
▷ Static methods35.17%
▷ Public methods3051.72%
▷ Protected methods23.45%
▷ Private methods2644.83%
Functions0
▷ Named functions00.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