84% visualize

Code Review | Visualize

WordPress plugin Visualize scored84%from 54 tests.

About plugin

  • Plugin page: visualize
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 6.3.1
  • First release: May 29, 2020
  • Latest release: Oct 11, 2020
  • Number of updates: 3
  • Update frequency: every 45.3 days
  • Top authors: prtksxna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Visualize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.45 ▲0.83
Dashboard /wp-admin3.31 ▼0.0344.23 ▼19.60
Posts /wp-admin/edit.php3.36 ▲0.0145.05 ▲3.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.37 ▼12.74
Media Library /wp-admin/upload.php3.24 ▲0.0133.73 ▼0.67

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Visualize
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.44 ▲0.061.83 ▲0.0545.09 ▲1.71
Dashboard /wp-admin2,206 ▲185.79 ▼0.0997.16 ▼18.9238.67 ▼3.87
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0337.20 ▲0.9733.01 ▼0.53
Add New Post /wp-admin/post-new.php6,180 ▲4,65221.23 ▲2.97841.65 ▲253.6068.37 ▲13.38
Media Library /wp-admin/upload.php1,382 ▼94.19 ▲0.0094.60 ▼7.0240.58 ▼6.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visualize/visualize.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: mermaid, graphs, block, visualizations, gutenberg...

visualize/visualize.php Passed 13 tests

Analyzing the main PHP file in "Visualize" version 1.0.4
57 characters long description:
Gutenberg block to add visualizations to your blog posts.

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
There were no executable files found in this plugin29,212 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript29,7177,76828,908
Markdown1460218
XML1134243
PHP241926
CSS13017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin