83% wordtwit-tweet-failed

Code Review | WordTwit Tweet Failed

WordPress plugin WordTwit Tweet Failed scored83%from 54 tests.

About plugin

  • Plugin page: wordtwit-tweet-fa...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Aug 15, 2013
  • Latest release: Aug 15, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: Phyrax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.84ms] Passed 4 tests

Analyzing server-side resources used by WordTwit Tweet Failed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.67 ▼1.45
Dashboard /wp-admin3.31 ▼0.0448.39 ▼12.84
Posts /wp-admin/edit.php3.36 ▲0.0049.36 ▼1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.20 ▼23.70
Media Library /wp-admin/upload.php3.23 ▲0.0032.48 ▼0.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WordTwit Tweet Failed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.131.62 ▼0.0841.08 ▼0.27
Dashboard /wp-admin2,206 ▲185.86 ▼0.0295.22 ▼5.4637.64 ▼5.68
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0538.86 ▼1.4736.23 ▼0.00
Add New Post /wp-admin/post-new.php1,371 ▼14316.73 ▼0.86571.76 ▼46.7249.85 ▼3.74
Media Library /wp-admin/upload.php1,391 ▲64.14 ▼0.0697.81 ▼8.0738.89 ▼6.85

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wordtwit-tweet-failed/functions.php
    • > /wp-content/plugins/wordtwit-tweet-failed/class/main.class.php

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Image of the plugin) image required
The official readme.txt is a good inspiration

wordtwit-tweet-failed/functions.php 77% from 13 tests

"WordTwit Tweet Failed" version 1.0'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:
  • Domain Path: The domain path is invalid: folder "/lang" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("wordtwit-tweet-failed.php" instead of "functions.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected101 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141481
Markdown15012
CSS1216
JavaScript1022

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin