84% brandapp

Code Review | BrandApp

WordPress plugin BrandApp scored84%from 54 tests.

About plugin

  • Plugin page: brandapp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2020
  • Latest release: Oct 7, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: krisberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /474 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.43ms] Passed 4 tests

An overview of server-side resources used by BrandApp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.0648.23 ▲5.19
Dashboard /wp-admin3.68 ▲0.1254.78 ▼2.00
Posts /wp-admin/edit.php3.73 ▲0.0554.08 ▼5.77
Add New Post /wp-admin/post-new.php6.22 ▲0.0795.08 ▼9.32
Media Library /wp-admin/upload.php3.54 ▲0.0543.44 ▼4.62
About /wp-admin/admin.php?page=brandapp-about3.5134.44
BrandApp /wp-admin/admin.php?page=brandapp3.5141.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BrandApp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲6314.16 ▼0.491.78 ▼0.1641.32 ▼2.62
Dashboard /wp-admin2,243 ▲665.66 ▼0.0492.06 ▲2.9174.61 ▲29.20
Posts /wp-admin/edit.php2,167 ▲642.06 ▲0.0942.85 ▼5.3733.89 ▼4.08
Add New Post /wp-admin/post-new.php1,587 ▲4223.30 ▲0.03714.79 ▲62.9960.54 ▲3.47
Media Library /wp-admin/upload.php1,486 ▲834.28 ▲0.05106.30 ▼4.1884.84 ▲36.70
About /wp-admin/admin.php?page=brandapp-about1,70110.24332.9099.54
BrandApp /wp-admin/admin.php?page=brandapp1,2026.74192.3046.73

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=brandapp-about
    • > Console-api (warning) in unknown
    https://static.hotjar.com/c/hotjar-1534216.js?sv=7 2:6897 "Hotjar not launching due to suspicious userAgent:" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/117.0.5938.149 Safari/537.36"
    • > GET request to /wp-admin/admin.php?page=brandapp
    • > Console-api (warning) in unknown
    https://static.hotjar.com/c/hotjar-1534216.js?sv=6 2:6897 "Hotjar not launching due to suspicious userAgent:" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/117.0.5938.149 Safari/537.36"

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: graphics, photos, graphic design, business, media library...

brandapp/brandapp.php 92% from 13 tests

The main PHP script in "BrandApp" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin512 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP892361200
JavaScript26234199
SVG10066
CSS16047

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.80
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin