84% flytedesk-digital

Code Review | Flytedesk Digital

WordPress plugin Flytedesk Digital scored84%from 54 tests.

About plugin

  • Plugin page: flytedesk-digital
  • Plugin version: 20181101...
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Nov 14, 2018
  • Latest release: Mar 27, 2019
  • Number of updates: 7
  • Update frequency: every 19.4 days
  • Top authors: flytedesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,015 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼4.26ms] Passed 4 tests

Server-side resources used by Flytedesk Digital
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.82 ▼0.08
Dashboard /wp-admin3.33 ▲0.0347.76 ▲1.16
Posts /wp-admin/edit.php3.38 ▲0.0244.51 ▼5.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.49 ▼11.53
Media Library /wp-admin/upload.php3.25 ▲0.0233.88 ▼0.20
Flytedesk /wp-admin/options-general.php?page=flytedesk-digital-options3.2230.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_flytedesk_ad_unit
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Flytedesk Digital
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10614.39 ▲0.152.59 ▲0.7239.98 ▼9.23
Dashboard /wp-admin2,214 ▲295.84 ▼0.0297.45 ▼1.2939.09 ▼4.66
Posts /wp-admin/edit.php2,097 ▲52.02 ▲0.0137.63 ▼3.1631.54 ▼3.85
Add New Post /wp-admin/post-new.php1,521 ▲722.80 ▲5.15626.16 ▼58.6758.39 ▲1.78
Media Library /wp-admin/upload.php1,396 ▲114.19 ▼0.0198.59 ▼4.3441.42 ▼3.15
Flytedesk /wp-admin/options-general.php?page=flytedesk-digital-options7992.0124.1822.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_flytedesk_ad_unit
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flytedesk-digital/includes/class-flytedesk-digital-widget.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
3 plugin tags: flytedesk, digital advertising, college publishers

flytedesk-digital/flytedesk-digital.php 92% from 13 tests

The principal PHP file in "Flytedesk Digital" v. 20181101... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20181101...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin361 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10128502283
CSS214463
JavaScript222715

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2678.79%
▷ Protected methods00.00%
▷ Private methods721.21%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png9.79KB3.31KB▼ 66.23%