94% advanced-flamingo

Code Review | Advanced Flamingo

WordPress plugin Advanced Flamingo scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-flamingo
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.6
  • WordPress version: 5.8.1
  • First release: Feb 3, 2021
  • Latest release: Apr 27, 2021
  • Number of updates: 4
  • Update frequency: every 21.0 days
  • Top authors: bluecoral (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 2,435 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼144.79ms] Passed 4 tests

An overview of server-side resources used by Advanced Flamingo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.22 ▲8.18
Dashboard /wp-admin3.06 ▼0.0032.00 ▼3.86
Posts /wp-admin/edit.php3.11 ▲0.0030.25 ▼0.77
Add New Post /wp-admin/post-new.php5.42 ▼0.0269.53 ▼575.33
Media Library /wp-admin/upload.php3.00 ▲0.0024.00 ▲0.81
Advanced Flamingo /wp-admin/admin.php?page=advanced-flamingo2.7414.51

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Flamingo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲1515.54 ▼0.165.21 ▼2.1676.00 ▼1.19
Dashboard /wp-admin2,933 ▲376.14 ▲0.01116.48 ▼17.35165.29 ▼6.63
Posts /wp-admin/edit.php2,743 ▲33.23 ▼0.0164.95 ▲1.23142.12 ▲1.18
Add New Post /wp-admin/post-new.php3,735 ▼918.90 ▼0.18421.55 ▼20.95159.42 ▼10.11
Media Library /wp-admin/upload.php1,752 ▲35.49 ▼0.00143.75 ▲1.92185.69 ▲5.67
Advanced Flamingo /wp-admin/admin.php?page=advanced-flamingo280.940.0316.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=advanced-flamingo
    • > Network (severe)
    wp-admin/admin.php?page=advanced-flamingo - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: contact, message storage, flamingo, contact form, mail

advanced-flamingo/advanced-flamingo.php 92% from 13 tests

The main PHP file in "Advanced Flamingo" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)

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 plugin511 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP29849361
CSS286140
JavaScript20610

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png6.21KB4.07KB▼ 34.55%