90% figpii

Code Review | FigPii

WordPress plugin FigPii scored90%from 54 tests.

About plugin

  • Plugin page: figpii
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.1
  • WordPress version: 6.3.1
  • First release: May 5, 2021
  • Latest release: Feb 14, 2023
  • Number of updates: 14
  • Update frequency: every 46.4 days
  • Top authors: rezajalaei (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /677 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼9.98ms] Passed 4 tests

Server-side resources used by FigPii
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0826.87 ▼19.53
Dashboard /wp-admin3.31 ▼0.0347.85 ▼17.46
Posts /wp-admin/edit.php3.36 ▲0.0150.98 ▲0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.40 ▼3.54
Media Library /wp-admin/upload.php3.24 ▲0.0140.53 ▲1.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for FigPii
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.25 ▼0.021.81 ▼0.0942.59 ▼5.44
Dashboard /wp-admin2,229 ▲525.54 ▼0.1092.98 ▼5.9537.83 ▼9.91
Posts /wp-admin/edit.php2,141 ▲411.98 ▼0.0339.63 ▲6.6134.56 ▼7.64
Add New Post /wp-admin/post-new.php1,543 ▲1422.87 ▼0.70705.74 ▲11.4761.07 ▲0.35
Media Library /wp-admin/upload.php1,444 ▲414.19 ▼0.03101.65 ▲0.6148.67 ▲7.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
1 plugin tags: figpii

figpii/figpii.php 92% from 13 tests

The principal PHP file in "FigPii" v. 3.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Good job! No executable or dangerous file extensions detected254 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP66240222
Markdown118028
SVG1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin