83% authorized-store-seal

Code Review | Authorized Store Seal

WordPress plugin Authorized Store Seal scored83%from 54 tests.

About plugin

  • Plugin page: authorized-store-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Aug 9, 2016
  • Number of updates: 30
  • Update frequency: every 4.2 days
  • Top authors: CreativeMindsSolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,154 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.60MB] [CPU: ▼3.05ms] Passed 4 tests

A check of server-side resources used by Authorized Store Seal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6643.39 ▼1.08
Dashboard /wp-admin3.95 ▲0.6054.44 ▼9.82
Posts /wp-admin/edit.php4.00 ▲0.6457.39 ▲5.16
Add New Post /wp-admin/post-new.php6.47 ▲0.5897.09 ▼5.15
Media Library /wp-admin/upload.php3.81 ▲0.5839.59 ▲3.84

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
cminds-authorized-store-last-update-info
theysaidso_admin_options
widget_authorizedstore_widget
widget_recent-comments
cminds-authorized-store-last-update-check
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Authorized Store Seal
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.31 ▲0.021.73 ▲0.0347.02 ▲3.68
Dashboard /wp-admin2,214 ▲375.66 ▼0.0191.96 ▲2.0640.14 ▼0.94
Posts /wp-admin/edit.php2,116 ▲162.04 ▲0.0138.51 ▼1.1135.51 ▼3.72
Add New Post /wp-admin/post-new.php1,567 ▲4118.64 ▲0.98616.85 ▼26.4962.99 ▲11.43
Media Library /wp-admin/upload.php1,416 ▲164.31 ▲0.07101.87 ▼0.8643.89 ▲1.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • cminds-authorized-store-last-update-info
    • widget_authorizedstore_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • cminds-authorized-store-last-update-check
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/authorized-store-seal/views/settings.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/authorized-store-seal/widgets.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authorized-store-seal/authorizedstore.php:196
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/authorized-store-seal/package/views/userguide_free.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/authorized-store-seal/package/cminds-plugin-config.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/authorized-store-seal/package/cminds-plugin-config.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: merchant seal, authorized, authorized retailer, authorized store, trust seal

authorized-store-seal/authorizedstore.php 77% from 13 tests

The primary PHP file in "Authorized Store Seal" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("authorized-store-seal.php" instead of "authorizedstore.php")
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,166 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP86203893,625
CSS1870541

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity91.50
▷ Minimum class complexity4.00
▷ Maximum class complexity200.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods107
▷ Static methods43.74%
▷ Public methods9487.85%
▷ Protected methods87.48%
▷ Private methods54.67%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
package/views/downloads.png4.54KB4.70KB0.00%
package/views/faq.png7.42KB7.81KB0.00%
package/views/tooltip.png4.56KB4.75KB0.00%
package/views/WPmembership.png8.44KB3.59KB▼ 57.47%
package/views/answers.png25.60KB9.50KB▼ 62.89%