89% frase

Code Review | Frase

WordPress plugin Frase scored89%from 54 tests.

About plugin

  • Plugin page: frase
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6.39+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: May 20, 2022
  • Latest release: Jun 21, 2023
  • Number of updates: 19
  • Update frequency: every 21.0 days
  • Top authors: tommyfrase (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /5,788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Frase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.60 ▼4.41
Dashboard /wp-admin3.34 ▲0.0452.32 ▼5.38
Posts /wp-admin/edit.php3.40 ▲0.0454.90 ▼3.40
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.03 ▼15.38
Media Library /wp-admin/upload.php3.27 ▲0.0439.69 ▲4.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Frase
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲17822.60 ▲8.251.95 ▼0.0139.01 ▼5.43
Dashboard /wp-admin2,346 ▲16914.46 ▲8.88435.77 ▲342.0352.21 ▲12.92
Posts /wp-admin/edit.php2,311 ▲21114.30 ▲12.30143.67 ▲107.3231.22 ▼1.73
Add New Post /wp-admin/post-new.php6,410 ▲4,88227.94 ▲4.77804.76 ▲187.8635.05 ▼11.48
Media Library /wp-admin/upload.php1,539 ▲14213.86 ▲9.66167.71 ▲69.5343.56 ▲1.29

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: content analysis, seo

frase/frase.php 85% from 13 tests

The main PHP script in "Frase" version 1.2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected100 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13710089
CSS13010
JavaScript1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG files were detected