84% pico

Code Review | Hype

WordPress plugin Hype scored84%from 54 tests.

About plugin

  • Plugin page: pico
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 23, 2019
  • Latest release: Apr 6, 2023
  • Number of updates: 22
  • Update frequency: every 64.3 days
  • Top authors: picoengineering (86.36%)iheartcake (18.18%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.53ms] Passed 4 tests

This is a short check of server-side resources used by Hype
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1153.78 ▲14.18
Dashboard /wp-admin3.41 ▲0.0755.37 ▼13.12
Posts /wp-admin/edit.php3.53 ▲0.1755.55 ▲4.16
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.77 ▼5.55
Media Library /wp-admin/upload.php3.34 ▲0.1142.07 ▲4.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables
wp_pico
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Hype
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.26 ▼0.272.00 ▲0.2343.40 ▼0.34
Dashboard /wp-admin2,223 ▲465.58 ▲0.0582.92 ▼7.7843.01 ▲0.82
Posts /wp-admin/edit.php2,128 ▲282.01 ▲0.0342.84 ▲6.7137.03 ▲0.55
Add New Post /wp-admin/post-new.php1,543 ▲923.63 ▲5.37630.35 ▼27.2154.76 ▼9.35
Media Library /wp-admin/upload.php1,428 ▲314.39 ▲0.2998.80 ▼0.1442.21 ▼1.77

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pico/includes/class.api.php:137
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pico/includes/views/auth.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/pico/includes/views/connected.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pico/pico.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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 require attention:
  • Screenshots: Add images for these screenshots: #5 (Quickly launch membership, subscription paywall, or paid newsletter offers.), #6 (Present signup and payment popups at just the right moment.)
Please take inspiration from this readme.txt

pico/pico.php Passed 13 tests

The primary PHP file in "Hype" version 1.0.5 is used by WordPress to initiate all plugin functionality
59 characters long description:
The all-in-one marketing and payments platform for creators

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
Success! There were no dangerous files found in this plugin1,039 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP9115151649
CSS113318
JavaScript26065
SVG7007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods3988.64%
▷ Public methods3886.36%
▷ Protected methods00.00%
▷ Private methods613.64%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin