73% advanced-blog-metrics

Code Review | Advanced Blog Metrics

WordPress plugin Advanced Blog Metrics scored73%from 54 tests.

About plugin

  • Plugin page: advanced-blog-met...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Dec 31, 2012
  • Latest release: Jun 4, 2013
  • Number of updates: 32
  • Update frequency: every 4.9 days
  • Top authors: atalanta-agency (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /4,836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.87ms] Passed 4 tests

Analyzing server-side resources used by Advanced Blog Metrics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.37 ▼6.49
Dashboard /wp-admin3.40 ▲0.1044.94 ▼6.07
Posts /wp-admin/edit.php3.48 ▲0.1243.16 ▼8.99
Add New Post /wp-admin/post-new.php6.01 ▲0.1284.38 ▼9.94
Media Library /wp-admin/upload.php3.35 ▲0.1238.58 ▲2.66
Dashboard /wp-admin/admin.php?page=advanced-blog-metrics3.2933.82
Settings /wp-admin/admin.php?page=advanced-blog-metrics-options3.2935.33

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
abm_data
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Blog Metrics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,250 ▲46413.58 ▼0.794.58 ▲2.2025.83 ▼18.77
Dashboard /wp-admin2,666 ▲4955.84 ▲0.2598.20 ▲7.6493.35 ▲50.12
Posts /wp-admin/edit.php2,136 ▲362.02 ▲0.0238.31 ▼2.0233.70 ▼3.43
Add New Post /wp-admin/post-new.php1,563 ▲3223.18 ▲0.53681.31 ▲22.8452.58 ▼8.20
Media Library /wp-admin/upload.php1,436 ▲334.20 ▼0.0496.32 ▼8.2045.21 ▲3.40
Dashboard /wp-admin/admin.php?page=advanced-blog-metrics1,0452.0623.8735.34
Settings /wp-admin/admin.php?page=advanced-blog-metrics-options8192.0325.6026.12

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • abm_data
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+248
    Undefined property: stdClass::$ID
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+501
    Undefined offset: 1
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+501
    Undefined offset: 2
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+501
    Undefined offset: 3
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+501
    Undefined offset: 4
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+501
    Undefined offset: 6
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+504
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+424
    Undefined variable: posts
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics-options
    • > Notice in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php+123
    Trying to access array offset on value of type bool

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/advanced-blog-metrics/advanced-blog-metrics.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Network (severe)
    http://www.atalanta.fr/advanced-blog-metrics/facebook-like.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=advanced-blog-metrics
    • > Network (severe)
    http://www.atalanta.fr/advanced-blog-metrics/facebook-share.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === advanced-blog-metrics === )
The official readme.txt might help

advanced-blog-metrics/advanced-blog-metrics.php Passed 13 tests

Analyzing the main PHP file in "Advanced Blog Metrics" version 1.5
121 characters long description:
Advanced Blog Metrics is an analytics tool dedicated to bloggers. This plugin allows you to improve your blog performance

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 detected707 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP110262485
PO File269165176
CSS16046

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin