89% timedlinks

Code Review | Timedlinks for Wordpress

WordPress plugin Timedlinks for Wordpress scored89%from 54 tests.

About plugin

  • Plugin page: timedlinks
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Oct 16, 2018
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: richardsondx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.19ms] Passed 4 tests

This is a short check of server-side resources used by Timedlinks for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1131.41 ▼8.65
Dashboard /wp-admin3.23 ▼0.07295.29 ▲248.83
Posts /wp-admin/edit.php3.55 ▲0.1948.51 ▲1.52
Add New Post /wp-admin/post-new.php6.02 ▲0.1392.30 ▼10.76
Media Library /wp-admin/upload.php3.36 ▲0.1335.21 ▲1.15

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
pick_settings_latest_version
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Timedlinks for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.83 ▼0.595.02 ▲3.4136.71 ▼4.06
Dashboard /wp-admin2,244 ▲595.13 ▼0.72101.82 ▲0.2139.62 ▼5.13
Posts /wp-admin/edit.php2,132 ▲432.36 ▲0.3042.63 ▲5.9334.82 ▼0.33
Add New Post /wp-admin/post-new.php1,547 ▲2723.16 ▼0.02630.74 ▲3.5936.11 ▼19.15
Media Library /wp-admin/upload.php1,429 ▲414.56 ▲0.3196.23 ▼3.0141.70 ▼1.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • pick_settings_latest_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: A description for screenshot #1 is required in timedlinks/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

timedlinks/timedlinks.php Passed 13 tests

The principal PHP file in "Timedlinks for Wordpress" v. 1.0.0 is loaded by WordPress automatically on each request
115 characters long description:
Timedlinks has everything you need to create a poppup. It's a powerful time-based conversion optimization toolkits.

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
No dangerous file extensions were detected978 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP319319550
JavaScript16629405
SVG10123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity45.00
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods3468.00%
▷ Protected methods00.00%
▷ Private methods1632.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
No PNG images were found in this plugin