79% wp-deadlines

Code Review | WP Deadlines

WordPress plugin WP Deadlines scored79%from 54 tests.

About plugin

  • Plugin page: wp-deadlines
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Aug 1, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: themesgrove (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /3,898 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
Installer ran successfully

Server metrics [RAM: ▼0.51MB] [CPU: ▼18.21ms] Passed 4 tests

Analyzing server-side resources used by WP Deadlines
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2041.59 ▼1.23
Dashboard /wp-admin3.51 ▲0.2144.09 ▼9.35
Posts /wp-admin/edit.php3.56 ▲0.2046.90 ▼2.00
Add New Post /wp-admin/post-new.php3.32 ▼2.5736.02 ▼60.27
Media Library /wp-admin/upload.php3.37 ▲0.1435.52 ▲0.39
Add New /wp-admin/post-new.php?post_type=tg_wp_deadline3.8542.83
Deadlines /wp-admin/edit.php?post_type=tg_wp_deadline3.4833.18

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 601 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_wp_deadlines_widget
can_compress_scripts
widget_recent-posts
recovery_mode_email_last_sent
theysaidso_admin_options
widget_theysaidso_widget
_tg_deadline_current_id

Browser metrics Passed 4 tests

Checking browser requirements for WP Deadlines
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲23514.76 ▲0.4013.35 ▲11.6146.10 ▲4.86
Dashboard /wp-admin2,256 ▲684.95 ▲0.07113.13 ▲10.1737.33 ▼3.47
Posts /wp-admin/edit.php2,142 ▲532.25 ▲0.2039.39 ▲4.2835.45 ▲1.18
Add New Post /wp-admin/post-new.php1,567 ▲3318.39 ▼4.88641.57 ▼3.7638.12 ▼18.59
Media Library /wp-admin/upload.php1,438 ▲564.35 ▲0.17106.73 ▲11.9847.75 ▲8.16
Add New /wp-admin/post-new.php?post_type=tg_wp_deadline1,3051.536.8228.48
Deadlines /wp-admin/edit.php?post_type=tg_wp_deadline1,1032.2236.6531.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_wp_deadlines_widget
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • db_upgraded

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
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=tg_wp_deadline
    • > Compile error in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php+15
    Declaration of CMB2_Type_Text_Datetime_Timestamp::render() must be compatible with CMB2_Type_Text::render($args = Array)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 189× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Gd/Commands/DestroyCommand.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Imagick/Commands/InvertCommand.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/tests/cmb-tests-base.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Imagick/Commands/ContrastCommand.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-deadlines/lib/guzzlehttp/psr7/src/MultipartStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Intervention\\Image\\Imagick\\Commands\\ResizeCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Imagick/Commands/HeightenCommand.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: deadline, clock, email-countdown, sales, timer...

wp-deadlines/wp-deadlines.php Passed 13 tests

"WP Deadlines" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Finally, A countdown timer to increase your sales and email conversions by creating a urgency to your buyer.

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
Success! There were no dangerous files found in this plugin108,738 lines of code in 440 files:
LanguageFilesBlank linesComment linesLines of code
XML34247,749
PO File12013,78217,88231,544
PHP2555,42911,99519,676
CSS151,1381,1365,101
Markdown1054301,419
JavaScript143203521,354
Sass14277261,293
JSON800509
Bourne Shell1231193

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.86
▷ Minimum class complexity1.00
▷ Maximum class complexity168.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces15
Interfaces8
Traits2
Classes245
▷ Abstract classes187.35%
▷ Concrete classes22792.65%
▷ Final classes20.88%
Methods1,563
▷ Static methods1429.09%
▷ Public methods1,33585.41%
▷ Protected methods1559.92%
▷ Private methods734.67%
Functions89
▷ Named functions6269.66%
▷ Anonymous functions2730.34%
Constants27
▷ Global constants622.22%
▷ Class constants2177.78%
▷ Public constants21100.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
15 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/webdevstudios/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
lib/webdevstudios/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
lib/webdevstudios/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
lib/webdevstudios/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
lib/webdevstudios/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%