89% bookmarked-tweets

Code Review | Bookmarked Tweets

WordPress plugin Bookmarked Tweets scored89%from 54 tests.

About plugin

  • Plugin page: bookmarked-tweets
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 26, 2016
  • Latest release: Jul 27, 2016
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: mindlogixtechs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼13.71ms] Passed 4 tests

An overview of server-side resources used by Bookmarked Tweets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.29 ▼9.75
Dashboard /wp-admin3.34 ▲0.0047.15 ▼13.75
Posts /wp-admin/edit.php3.40 ▲0.0448.84 ▲1.79
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.06 ▼32.78
Media Library /wp-admin/upload.php3.27 ▲0.0437.92 ▲1.43

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
mlx_bt_last_updated_time

Browser metrics Passed 4 tests

A check of browser resources used by Bookmarked Tweets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.25 ▼0.111.70 ▲0.0540.42 ▼1.21
Dashboard /wp-admin2,213 ▲365.64 ▼0.0489.89 ▲3.4038.03 ▼3.90
Posts /wp-admin/edit.php2,118 ▲212.01 ▲0.0033.97 ▼2.0534.87 ▲0.34
Add New Post /wp-admin/post-new.php1,541 ▲1323.19 ▲2.19679.56 ▲7.5058.79 ▼7.20
Media Library /wp-admin/upload.php1,418 ▲184.12 ▼0.06109.68 ▲0.9851.72 ▲1.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • mlx_bt_last_updated_time
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid url: "none"
The official readme.txt is a good inspiration

bookmarked-tweets/mlx_bookmark_tweets.php 92% from 13 tests

This is the main PHP file of "Bookmarked Tweets" version 1.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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bookmarked-tweets.php" instead of "mlx_bookmark_tweets.php")

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
There were no executable files found in this plugin335 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16312248
CSS21387

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin