74% timify

Code Review | Timify

WordPress plugin Timify scored74%from 54 tests.

About plugin

  • Plugin page: timify
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2021
  • Latest release: Oct 5, 2023
  • Number of updates: 32
  • Update frequency: every 25.0 days
  • Top authors: themeim (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,861 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.49MB] [CPU: ▼0.50ms] Passed 4 tests

An overview of server-side resources used by Timify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2737.28 ▲3.58
Dashboard /wp-admin3.93 ▲0.6352.72 ▲4.63
Posts /wp-admin/edit.php3.97 ▲0.6153.94 ▲7.07
Add New Post /wp-admin/post-new.php6.43 ▲0.5482.93 ▼14.51
Media Library /wp-admin/upload.php3.75 ▲0.5240.27 ▲4.31
Timify /wp-admin/options-general.php?page=timify_settings3.7541.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 12 new options
New tables
wp_timify_post_state
New WordPress options
theysaidso_admin_options
has_transient
timify_reading_settings
timify_settings
timify_view_settings
can_compress_scripts
widget_recent-comments
widget_recent-posts
track_transient
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲24815.10 ▲0.961.62 ▼0.0542.45 ▲5.29
Dashboard /wp-admin2,389 ▲2006.73 ▲1.82141.41 ▲24.2643.67 ▲2.87
Posts /wp-admin/edit.php2,298 ▲2063.74 ▲1.7057.68 ▲16.9836.82 ▲1.09
Add New Post /wp-admin/post-new.php1,546 ▲1817.64 ▼0.73615.24 ▲7.0434.34 ▼29.49
Media Library /wp-admin/upload.php1,431 ▲434.39 ▲0.1390.54 ▼10.9143.04 ▼0.32
Timify /wp-admin/options-general.php?page=timify_settings2,0503.9470.6532.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_timify_post_state
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • track_transient
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • has_transient
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(TIMIFY_INCLUDES/admin/settings/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/timify/includes/admin/settings/class.settings.php on line 2
    • > PHP Fatal error
      Trait 'Timify\\helpers\\HelperFunctions' not found in wp-content/plugins/timify/includes/admin/settings/class.settings-api.php on line 4
    • > PHP Warning
      Use of undefined constant TIMIFY_INCLUDES - assumed 'TIMIFY_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/timify/includes/admin/settings/class.settings.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'TIMIFY_INCLUDES/admin/settings/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/timify/includes/admin/settings/class.settings.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'TIMIFY_INCLUDES/admin/settings/class.settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/timify/includes/admin/admin-init.php on line 12
    • > PHP Warning
      require_once(TIMIFY_INCLUDES/admin/settings/class.settings.php): failed to open stream: No such file or directory in wp-content/plugins/timify/includes/admin/admin-init.php on line 12
    • > PHP Warning
      Use of undefined constant TIMIFY_INCLUDES - assumed 'TIMIFY_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/timify/includes/admin/admin-init.php on line 12
    • > PHP Fatal error
      Trait 'Timify\\helpers\\HelperFunctions' not found in wp-content/plugins/timify/includes/frontend/class.frontend.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: word count, post view count, date, reading time, modified time

timify/timify.php 92% from 13 tests

"Timify" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,120 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP103596191,889
PO File15664152
JavaScript112279

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity37.29
▷ Minimum class complexity3.00
▷ Maximum class complexity90.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces2
Interfaces0
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods89
▷ Static methods11.12%
▷ Public methods8089.89%
▷ Protected methods44.49%
▷ Private methods55.62%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin