83% graphic-web-design-inc

Code Review | Graphic Web Design, Inc. Manager

WordPress plugin Graphic Web Design, Inc. Manager scored83%from 54 tests.

About plugin

  • Plugin page: graphic-web-desig...
  • Plugin version: 1.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Nov 23, 2019
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: thewebsitesupply (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /721 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.03MB] [CPU: ▼7.73ms] Passed 4 tests

A check of server-side resources used by Graphic Web Design, Inc. Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.38 ▼4.34
Dashboard /wp-admin3.33 ▲0.0353.39 ▼1.66
Posts /wp-admin/edit.php3.38 ▲0.0347.72 ▲0.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.33 ▼25.33
Media Library /wp-admin/upload.php3.25 ▲0.0338.66 ▲0.81

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
gwd_app_token
widget_recent-comments
can_compress_scripts
gwd_email_to
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Graphic Web Design, Inc. Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.28 ▼0.081.90 ▼0.0245.24 ▲3.27
Dashboard /wp-admin2,212 ▲325.64 ▲0.0386.89 ▼4.5838.64 ▼4.24
Posts /wp-admin/edit.php2,114 ▲142.02 ▼0.0137.92 ▲1.6434.82 ▲2.23
Add New Post /wp-admin/post-new.php1,538 ▲1023.16 ▲0.24670.02 ▲1.8953.15 ▼0.81
Media Library /wp-admin/upload.php1,411 ▲174.21 ▼0.0496.88 ▼5.1243.13 ▼6.82

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • gwd_email_to
    • gwd_app_token

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/graphic-web-design-inc/graphic-web-design.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Settings Page)
The official readme.txt is a good inspiration

graphic-web-design-inc/graphic-web-design.php 85% from 13 tests

The entry point to "Graphic Web Design, Inc. Manager" version 1.11 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("graphic-web-design-inc.php" instead of "graphic-web-design.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1462285
CSS1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.25MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png254.64KB67.18KB▼ 73.62%