73% advanced-blog-metrics

Code Review | Advanced Blog Metrics

WordPress plugin Advanced Blog Metrics scored 73% 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: 5.9.2
  • 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

100+ active / 4,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Advanced Blog Metrics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1262.50 ▲3.88
Dashboard /wp-admin3.50 ▲0.0935.04 ▼2.01
Posts /wp-admin/edit.php3.76 ▲0.1246.07 ▲0.05
Add New Post /wp-admin/post-new.php7.00 ▲0.0395.83 ▼1,173.70
Media Library /wp-admin/upload.php3.41 ▲0.1226.11 ▼3.79
Settings /wp-admin/admin.php?page=advanced-blog-metrics-options3.3631.32
Dashboard /wp-admin/admin.php?page=advanced-blog-metrics3.3629.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
abm_data

Browser metrics Passed 4 tests

Advanced Blog Metrics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,372 ▲62615.95 ▲0.336.46 ▲0.732.31 ▲0.20
Dashboard /wp-admin3,495 ▲6416.36 ▲0.17124.00 ▼26.04231.66 ▲58.83
Posts /wp-admin/edit.php2,734 ▲433.25 ▲0.0161.96 ▼3.71145.33 ▲1.61
Add New Post /wp-admin/post-new.php1,718 ▲5718.47 ▲1.42426.76 ▲13.46154.96 ▲0.39
Media Library /wp-admin/upload.php1,737 ▲425.48 ▼0.04144.54 ▲1.55194.44 ▲9.88
Settings /wp-admin/admin.php?page=advanced-blog-metrics-options1,0332.4453.20126.14
Dashboard /wp-admin/admin.php?page=advanced-blog-metrics1,2852.3953.32157.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • abm_data

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > 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
    • > 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: 5
  • 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
    • > 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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > 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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === advanced-blog-metrics === )
You can take inspiration from this readme.txt

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

"Advanced Blog Metrics" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin707 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP110262485
PO File269165176
CSS16046

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected