84% highfly

Code Review | Highfly

WordPress plugin Highfly scored 84% from 54 tests.

About plugin

  • Plugin page: highfly
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Oct 7, 2014
  • Latest release: Nov 23, 2014
  • Number of updates: 6
  • Update frequency: every 8.0 days
  • Top authors: plocha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.26ms] Passed 4 tests

Analyzing server-side resources used by Highfly
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.29 ▲1.31
Dashboard /wp-admin3.39 ▲0.0946.67 ▼10.16
Posts /wp-admin/edit.php3.50 ▲0.1551.17 ▲0.40
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.78 ▲3.40
Media Library /wp-admin/upload.php3.31 ▲0.0838.12 ▲3.58

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Highfly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.161.70 ▼0.1643.01 ▼2.18
Dashboard /wp-admin2,206 ▲185.89 ▲1.02108.64 ▲6.4841.15 ▼3.89
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0438.87 ▼1.3135.77 ▲1.69
Add New Post /wp-admin/post-new.php1,539 ▲623.58 ▲0.23579.05 ▼102.7058.19 ▲5.10
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0396.61 ▼14.8241.41 ▼8.65

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'highfly\otifier' not found in wp-content/plugins/highfly/comment.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'highfly\otifier' not found in wp-content/plugins/highfly/post.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function highfly\\add_action() in wp-content/plugins/highfly/highfly.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: newsletter, mail, comment, notify, subscription...

highfly/highfly.php Passed 13 tests

Analyzing the main PHP file in "Highfly" version 2.0
82 characters long description:
Sends an email to the addresses of your choice when a new post or comment is made.

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
Good job! No executable or dangerous file extensions detected351 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP89373308
PO File1131443

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.14
Average class complexity3.38
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods41
▷ Static methods37.32%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected