78% visual-chap

Code Review | Visual Chap

WordPress plugin Visual Chap scored78%from 54 tests.

About plugin

  • Plugin page: visual-chap
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 10, 2016
  • Latest release: Feb 11, 2017
  • Number of updates: 13
  • Update frequency: every 4.5 days
  • Top authors: _Y_Power (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.97ms] Passed 4 tests

An overview of server-side resources used by Visual Chap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.89 ▼2.20
Dashboard /wp-admin3.35 ▲0.0048.78 ▼13.15
Posts /wp-admin/edit.php3.40 ▲0.0450.29 ▼4.02
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.66 ▼12.52
Media Library /wp-admin/upload.php3.27 ▲0.0435.06 ▲0.72
Visual Chap /wp-admin/options-general.php?page=wikipedia-visual-chap-settings3.2434.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 15 new options
New WordPress options
wikipedia-visual-chap-options-icon-color
wikipedia-visual-chap-options-words-filter
widget_theysaidso_widget
wikipedia-visual-chap-options-background-color
wikipedia-visual-chap-options-dev
wikipedia-visual-chap-options-link-color
theysaidso_admin_options
widget_recent-posts
wikipedia-visual-chap-options-color
wikipedia-visual-chap-options-wiki-donate
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Visual Chap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.75 ▲0.401.89 ▲0.3043.03 ▼3.37
Dashboard /wp-admin2,196 ▲165.58 ▼0.0793.63 ▲4.7043.41 ▲0.61
Posts /wp-admin/edit.php2,107 ▲42.02 ▼0.0040.25 ▼1.2236.35 ▼0.23
Add New Post /wp-admin/post-new.php1,531 ▼423.22 ▲5.05665.71 ▲38.8660.81 ▼10.65
Media Library /wp-admin/upload.php1,395 ▲44.23 ▲0.0599.56 ▼5.5441.75 ▼8.82
Visual Chap /wp-admin/options-general.php?page=wikipedia-visual-chap-settings9262.0225.7542.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/visual-chap/visual-chap.php
    • > /wp-content/plugins/visual-chap/includes/wvc-html.php
    • > /wp-content/plugins/visual-chap/uninstall.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wikipedia-visual-chap-settings
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=wikipedia-visual-chap-settings 161 The specified value "#fff" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: images, jquery, ajax, search, content...

visual-chap/visual-chap.php 92% from 13 tests

The principal PHP file in "Visual Chap" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected8,830 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG23915,086
CSS455592,686
JavaScript257206783
PHP367149275

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Visual_Chap_logo.png66.28KB26.88KB▼ 59.45%
assets/img/y_power_logo.png10.67KB7.06KB▼ 33.83%