84% fleetly-informers

Code Review | Informers

WordPress plugin Informers scored84%from 54 tests.

About plugin

  • Plugin page: fleetly-informers
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Jun 18, 2015
  • Number of updates: 2
  • Update frequency: every 10.5 days
  • Top authors: delieverynetwork (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Informers
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.10 ▼2.77
Dashboard /wp-admin3.32 ▲0.0248.47 ▼1.60
Posts /wp-admin/edit.php3.37 ▲0.0245.04 ▼5.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.04 ▼20.49
Media Library /wp-admin/upload.php3.25 ▲0.0232.88 ▼0.96
Fleetly Settings /wp-admin/options-general.php?page=fleetly3.1929.76

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_ft_informer
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Informers: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.221.75 ▼0.0545.44 ▲1.16
Dashboard /wp-admin2,202 ▲225.64 ▼0.0393.92 ▲4.6744.30 ▲3.14
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0236.14 ▼5.4632.79 ▼9.01
Add New Post /wp-admin/post-new.php1,529 ▼223.49 ▲0.26656.35 ▲39.9259.14 ▲9.38
Media Library /wp-admin/upload.php1,401 ▲14.28 ▼0.0098.83 ▼5.8844.73 ▼2.81
Fleetly Settings /wp-admin/options-general.php?page=fleetly8972.1823.6132.71

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_ft_informer
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=fleetly
    • > Notice in wp-content/plugins/fleetly-informers/index.php+112
    Undefined index: ft_test_url

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === fleetly-informers === )
Please take inspiration from this readme.txt

fleetly-informers/index.php 92% from 13 tests

The main file in "Informers" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fleetly-informers.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected702 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9177222557
PO File24042126
CSS10019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.62
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions13
▷ Named functions969.23%
▷ Anonymous functions430.77%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin