84% pf-timer

Code Review | PF Timer

WordPress plugin PF Timer scored84%from 54 tests.

About plugin

  • Plugin page: pf-timer
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2020
  • Latest release: Mar 7, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: profitfunnels (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /645 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.03MB] [CPU: ▼1.69ms] Passed 4 tests

This is a short check of server-side resources used by PF Timer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.46 ▲0.58
Dashboard /wp-admin3.34 ▲0.0444.36 ▼2.28
Posts /wp-admin/edit.php3.39 ▲0.0346.55 ▼2.52
Add New Post /wp-admin/post-new.php5.93 ▲0.04116.44 ▲20.11
Media Library /wp-admin/upload.php3.26 ▲0.0332.88 ▼2.53
Add PF Timer /wp-admin/post-new.php?post_type=pf-timer3.4770.65
PF Timer /wp-admin/edit.php?post_type=pf-timer3.3034.06

Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PF Timer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲16913.55 ▼1.209.14 ▲6.8842.87 ▼3.46
Dashboard /wp-admin2,233 ▲595.85 ▲0.94109.07 ▼1.6142.40 ▼1.32
Posts /wp-admin/edit.php2,116 ▲271.97 ▼0.0341.30 ▼0.6435.50 ▼0.41
Add New Post /wp-admin/post-new.php1,556 ▲923.42 ▲5.33658.94 ▲49.8360.41 ▲4.67
Media Library /wp-admin/upload.php1,412 ▲274.18 ▼0.03103.51 ▲10.7644.88 ▲4.89
Add PF Timer /wp-admin/post-new.php?post_type=pf-timer3,5213.0185.6138.45
PF Timer /wp-admin/edit.php?post_type=pf-timer1,0962.4235.9029.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=pf-timer
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot set properties of null (setting 'oninput')" "TypeError: Cannot set properties of null (setting 'oninput')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/pf-timer/assets/js/pf-script.js?ver=1.0.0:29:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=pf-timer
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot set properties of null (setting 'oninput')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: wordpress timer, lightweight timer, timer, countdown, countdown timer...

pf-timer/pf-timer.php 92% from 13 tests

This is the main PHP file of "PF Timer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Everything looks great! No dangerous files found in this plugin4,547 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32163341,923
CSS3403531,688
PHP579236936

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin