10% my-extreme-twitter

Code Review | My Extreme Twitter

WordPress plugin My Extreme Twitter scored10%from 54 tests.

About plugin

  • Plugin page: my-extreme-twitter
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.8.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Mar 15, 2014
  • Number of updates: 7
  • Update frequency: every 32.2 days
  • Top authors: h3mdsa (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,339 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/my-extreme-twitter/my_extreme_twitter.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; My_Extreme_Twitter_Widget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼62.28ms] Passed 4 tests

This is a short check of server-side resources used by My Extreme Twitter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.83 ▼35.89
Dashboard /wp-admin2.10 ▼1.246.33 ▼63.49
Posts /wp-admin/edit.php2.10 ▼1.256.27 ▼50.39
Add New Post /wp-admin/post-new.php2.10 ▼3.796.13 ▼99.35
Media Library /wp-admin/upload.php2.10 ▼1.136.72 ▼32.28

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_my_extreme_twitter-widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by My Extreme Twitter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.181.81 ▲0.0844.52 ▲4.64
Dashboard /wp-admin2,189 ▲125.62 ▼0.0497.82 ▲7.2943.52 ▲1.57
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0133.61 ▼5.2736.96 ▼1.47
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.09691.25 ▼7.2561.19 ▲4.60
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0399.30 ▲1.6442.27 ▼2.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/my-extreme-twitter/my_extreme_twitter.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; My_Extreme_Twitter_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_my_extreme_twitter-widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-extreme-twitter/my_extreme_twitter.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

my-extreme-twitter/my_extreme_twitter.php 92% from 13 tests

"My Extreme Twitter" version 3.0.1'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: Please rename the main PHP file in this plugin to the plugin slug ("my-extreme-twitter.php" instead of "my_extreme_twitter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221282

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected