89% frontify

Code Review | Frontify

WordPress plugin Frontify scored 89% from 54 tests.

About plugin

  • Plugin page: frontify
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: May 26, 2020
  • Latest release: May 26, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: moertle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,037 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: ▼3.04ms] Passed 4 tests

This is a short check of server-side resources used by Frontify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.56 ▼3.14
Dashboard /wp-admin3.33 ▲0.0348.76 ▼6.67
Posts /wp-admin/edit.php3.38 ▲0.0351.66 ▲1.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.32 ▼3.67
Media Library /wp-admin/upload.php3.26 ▲0.0338.76 ▲4.08
Frontify /wp-admin/options-general.php?page=frontify-settings3.2233.71

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Frontify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.081.73 ▼0.0740.38 ▼7.39
Dashboard /wp-admin2,210 ▲256.06 ▲1.17108.51 ▼10.4838.19 ▼11.12
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0039.47 ▲5.0935.20 ▼0.03
Add New Post /wp-admin/post-new.php6,588 ▲5,07429.21 ▲11.64955.41 ▲264.9162.28 ▲11.06
Media Library /wp-admin/upload.php1,386 ▼24.24 ▲0.0595.47 ▼6.7742.84 ▼3.22
Frontify /wp-admin/options-general.php?page=frontify-settings7982.0625.1227.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add your project credentials in the settings section of your wordpress installation: setup.png), #2 (You are ready to use the Frontify Image Block to choose from your linked Media Library: block.png)
The official readme.txt might help

frontify/index.php 92% from 13 tests

The main PHP script in "Frontify" version 0.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("frontify.php" instead of "index.php")

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
There were no executable files found in this plugin13,734 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON20013,279
JavaScript23559313
PHP2178127
CSS10015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.38MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/block.png328.35KB111.77KB▼ 65.96%
assets/setup.png64.71KB23.86KB▼ 63.13%