84% advanced-flamingo

Code Review | Advanced Flamingo

WordPress plugin Advanced Flamingo scored84%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: 6.3.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 /5,481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Advanced Flamingo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.01 ▼0.85
Dashboard /wp-admin3.31 ▲0.0050.08 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0050.16 ▼6.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.01 ▼23.42
Media Library /wp-admin/upload.php3.23 ▲0.0041.18 ▲1.86
Advanced Flamingo /wp-admin/admin.php?page=advanced-flamingo3.0025.01

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Flamingo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.031.77 ▲0.1343.49 ▲2.65
Dashboard /wp-admin2,192 ▲125.54 ▼0.1290.56 ▼5.9942.66 ▼1.98
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0533.44 ▼5.9735.13 ▼4.40
Add New Post /wp-admin/post-new.php1,526 ▼223.89 ▲0.83746.98 ▲38.0080.01 ▲33.50
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.12111.00 ▼5.1546.54 ▼5.02
Advanced Flamingo /wp-admin/admin.php?page=advanced-flamingo280.420.064.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > 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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: message storage, contact, contact form, flamingo, mail

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

Analyzing the main PHP file in "Advanced Flamingo" version 1.0
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous 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 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.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%