10% twitter-itfoundation

Code Review | twitter it foundation widget

WordPress plugin twitter it foundation widget scored10%from 54 tests.

About plugin

  • Plugin page: twitter-itfoundation
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-3.9
  • WordPress version: 6.3.1
  • First release: Jun 8, 2014
  • Latest release: Jun 8, 2014
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: mahmoud amin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /616 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/twitter-itfoundation/index.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; Posts_From_Twitter has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.33ms] Passed 4 tests

A check of server-side resources used by twitter it foundation widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.09 ▼36.91
Dashboard /wp-admin2.10 ▼1.205.78 ▼47.05
Posts /wp-admin/edit.php2.10 ▼1.265.94 ▼44.29
Add New Post /wp-admin/post-new.php2.10 ▼3.797.63 ▼89.08
Media Library /wp-admin/upload.php2.10 ▼1.135.45 ▼30.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for twitter it foundation widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.231.55 ▼0.0343.99 ▲2.46
Dashboard /wp-admin2,195 ▲215.51 ▼0.0585.43 ▼10.5738.69 ▼5.64
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0332.57 ▼3.4233.66 ▼3.97
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▼0.25670.37 ▲30.6653.74 ▼2.38
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0397.52 ▼2.7042.46 ▼4.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/twitter-itfoundation/index.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; Posts_From_Twitter has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_postsfromcat-widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/twitter-itfoundation/codebird.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-itfoundation/index.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: widget, twitter, feeds

twitter-itfoundation/index.php 92% from 13 tests

Analyzing the main PHP file in "twitter it foundation widget" version 1.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("twitter-itfoundation.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin797 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3117305796
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity33.00
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity4.84
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods416.00%
▷ Public methods1560.00%
▷ Protected methods832.00%
▷ Private methods28.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin