10% big-picture-analytics

Code Review | Point and Click Analytics by The Big Picture

WordPress plugin Point and Click Analytics by The Big Picture scored 10% from 54 tests.

About plugin

  • Plugin page: big-picture-analy...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Apr 25, 2017
  • Latest release: May 9, 2018
  • Number of updates: 12
  • Update frequency: every 31.9 days
  • Top authors: jordanskole (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 803 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/big-picture-analytics/the-big-picture.php+49
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.00MB] [CPU: ▼143.41ms] Passed 4 tests

Analyzing server-side resources used by Point and Click Analytics by The Big Picture
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.55 ▲5.99
Dashboard /wp-admin3.06 ▲0.0044.53 ▼6.87
Posts /wp-admin/edit.php3.11 ▲0.0043.63 ▲2.85
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.45 ▼565.71
Media Library /wp-admin/upload.php3.00 ▲0.0028.96 ▼3.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Point and Click Analytics by The Big Picture
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.86 ▲0.297.62 ▼1.2750.37 ▼4.55
Dashboard /wp-admin2,973 ▲395.87 ▼0.06135.31 ▼9.12104.44 ▼5.68
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0065.93 ▼0.9879.60 ▼16.06
Add New Post /wp-admin/post-new.php1,672 ▲17018.92 ▲0.41364.88 ▲2.56102.27 ▼10.16
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02150.16 ▼15.60115.18 ▼10.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× 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/big-picture-analytics/options.php:2
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/big-picture-analytics/the-big-picture.php on line 49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

big-picture-analytics/the-big-picture.php 85% from 13 tests

The main PHP file in "Point and Click Analytics by The Big Picture" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("big-picture-analytics.php" instead of "the-big-picture.php")

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
Everything looks great! No dangerous files found in this plugin127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23919105
CSS14220
Markdown1102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 2.89MB with 1.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/tbp-guide-1.png260.46KB95.73KB▼ 63.25%
assets/screenshot-2.png769.21KB213.13KB▼ 72.29%
assets/tbp-guide-2.png243.47KB89.87KB▼ 63.09%
assets/screenshot-4.png606.80KB161.68KB▼ 73.36%
assets/tbp-guide-3.png227.69KB93.24KB▼ 59.05%