78% timercampaign

Code Review | TimerCampaign

WordPress plugin TimerCampaign scored78%from 54 tests.

About plugin

  • Plugin page: timercampaign
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Nov 18, 2020
  • Number of updates: 12
  • Update frequency: every 6.3 days
  • Top authors: timercampaign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /372 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by TimerCampaign
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.54 ▲4.77
Dashboard /wp-admin3.33 ▲0.0244.26 ▼1.96
Posts /wp-admin/edit.php3.38 ▲0.0255.76 ▲7.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.30 ▼6.48
Media Library /wp-admin/upload.php3.25 ▲0.0236.74 ▼1.21
/wp-admin/options-general.php?page=timercampaign-options3.1928.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for TimerCampaign
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.29 ▼1.134.30 ▲2.2243.27 ▼0.57
Dashboard /wp-admin2,206 ▲184.84 ▼0.04108.19 ▲8.9139.35 ▼5.08
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0241.56 ▲0.0638.36 ▲1.38
Add New Post /wp-admin/post-new.php1,516 ▼1717.75 ▼5.23654.58 ▼32.8254.88 ▼7.92
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.1298.47 ▼16.1141.44 ▼10.38
/wp-admin/options-general.php?page=timercampaign-options1,9622.8333.2933.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=timercampaign-options
    • > Notice in wp-content/plugins/timercampaign/admin/timercampaign.php+21
    Undefined index: disconnect
    • > GET request to /wp-admin/options-general.php?page=timercampaign-options
    • > Notice in wp-content/plugins/timercampaign/admin/timercampaign.php+28
    Undefined index: js
    • > GET request to /wp-admin/options-general.php?page=timercampaign-options
    • > Notice in wp-content/plugins/timercampaign/admin/timercampaign.php+32
    Undefined index: user_id
    • > GET request to /wp-admin/options-general.php?page=timercampaign-options
    • > Notice in wp-content/plugins/timercampaign/admin/timercampaign.php+36
    Undefined index: email

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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timercampaign/admin/timercampaign.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timercampaign/admin/timercampaign.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === timercampaign === )
The official readme.txt is a good inspiration

timercampaign/timercampaign.php Passed 13 tests

This is the main PHP file of "TimerCampaign" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Wordpress plugin for TimerCampaign

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2311586

PHP code Passed 2 tests

An short overview of 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 complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin