89% maxicharts-gravity-view-add-on

Code Review | MaxiCharts Gravity View Add-on

WordPress plugin MaxiCharts Gravity View Add-on scored89%from 54 tests.

About plugin

  • Plugin page: maxicharts-gravit...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Apr 19, 2018
  • Number of updates: 17
  • Update frequency: every 17.8 days
  • Top authors: munger41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.41ms] Passed 4 tests

This is a short check of server-side resources used by MaxiCharts Gravity View Add-on
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.70 ▲4.71
Dashboard /wp-admin3.32 ▲0.0252.68 ▼0.06
Posts /wp-admin/edit.php3.38 ▲0.0150.30 ▼4.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0189.80 ▼17.68
Media Library /wp-admin/upload.php3.25 ▲0.0140.53 ▲0.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for MaxiCharts Gravity View Add-on
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▲0.051.77 ▼0.0544.76 ▲1.71
Dashboard /wp-admin2,198 ▲215.60 ▼0.0490.00 ▼4.0441.17 ▼2.07
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0539.42 ▼1.7834.75 ▼3.91
Add New Post /wp-admin/post-new.php1,526 ▼223.26 ▲0.09709.67 ▲4.8967.02 ▲17.05
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.01109.34 ▼6.5346.15 ▼9.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 30 tag instead of maximum 10
Please take inspiration from this readme.txt

maxicharts-gravity-view-add-on/mcharts_gv_add_on.php 77% from 13 tests

"MaxiCharts Gravity View Add-on" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("maxicharts-gravity-view-add-on.php" instead of "mcharts_gv_add_on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181466

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity4.67
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin