89% modern-ctt

Code Review | Modern CTT

WordPress plugin Modern CTT scored89%from 54 tests.

About plugin

  • Plugin page: modern-ctt
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7.1
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: May 11, 2021
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: modernplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /528 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.60ms] Passed 4 tests

An overview of server-side resources used by Modern CTT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.68 ▲2.09
Dashboard /wp-admin3.31 ▲0.0147.97 ▼0.40
Posts /wp-admin/edit.php3.36 ▲0.0145.76 ▼3.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.92 ▲4.88
Media Library /wp-admin/upload.php3.23 ▲0.0134.51 ▲4.34

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Modern CTT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.25 ▼0.961.87 ▲0.1342.29 ▲0.79
Dashboard /wp-admin2,203 ▲125.83 ▲0.9495.87 ▼3.1239.32 ▼6.22
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0536.54 ▼4.7433.76 ▼2.33
Add New Post /wp-admin/post-new.php6,186 ▲4,65319.21 ▼3.81960.38 ▲333.5158.50 ▲6.50
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.1196.46 ▼26.3546.23 ▼13.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: click to tweet, twitter share, twitter, twitter block, tweet

modern-ctt/modern-click-to-tweet.php 62% from 13 tests

"Modern CTT" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("modern-ctt.php" instead of "modern-click-to-tweet.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0.0" instead of "5.6")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.6.0" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin666 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61430183
PHP22359159
Sass350155
PO File1333692
JSON30048
Markdown117025
CSS2002
SVG2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants3
▷ Global constants3100.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