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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.68 ▲2.09 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.97 ▼0.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.76 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.92 ▲4.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.25 ▼0.96 | 1.87 ▲0.13 | 42.29 ▲0.79 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.94 | 95.87 ▼3.12 | 39.32 ▼6.22 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.05 | 36.54 ▼4.74 | 33.76 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6,186 ▲4,653 | 19.21 ▼3.81 | 960.38 ▲333.51 | 58.50 ▲6.50 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.11 | 96.46 ▼26.35 | 46.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 14 | 30 | 183 |
PHP | 2 | 23 | 59 | 159 |
Sass | 3 | 5 | 0 | 155 |
PO File | 1 | 33 | 36 | 92 |
JSON | 3 | 0 | 0 | 48 |
Markdown | 1 | 17 | 0 | 25 |
CSS | 2 | 0 | 0 | 2 |
SVG | 2 | 0 | 0 | 2 |
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 code | 0.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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